Class MemoryFileInfo
This is an alternative to having a System.IO.FileInfo in the browser. To accomodate for file system restrictions in the browser, this behaves like an in-memory file.
Important: This must follow the System.IO.FileInfo class interface. Then no compilation errors are expected when migrating from Silverlight.
Inheritance
System.Object
MemoryFileInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenSilver.IO
Assembly: OpenSilver.dll
Syntax
public class MemoryFileInfo
Constructors
| Improve this Doc View SourceMemoryFileInfo(String, Byte[])
Declaration
public MemoryFileInfo(string filename, byte[] content)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | |
System.Byte[] | content |
Properties
| Improve this Doc View SourceAttributes
Declaration
[NotImplemented]
public FileAttributes Attributes { get; set; }
Property Value
Type | Description |
---|---|
System.IO.FileAttributes |
Exists
Declaration
[NotImplemented]
public bool Exists { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Extension
Declaration
public string Extension { get; }
Property Value
Type | Description |
---|---|
System.String |
FullName
Declaration
[NotImplemented]
public virtual string FullName { get; }
Property Value
Type | Description |
---|---|
System.String |
Length
Declaration
public virtual long Length { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceOpenRead()
Declaration
public Stream OpenRead()
Returns
Type | Description |
---|---|
System.IO.Stream |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()