Show / Hide Table of Contents

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 Source

MemoryFileInfo(String, Byte[])

Declaration
public MemoryFileInfo(string filename, byte[] content)
Parameters
Type Name Description
System.String filename
System.Byte[] content

Properties

| Improve this Doc View Source

Attributes

Declaration
[NotImplemented]
public FileAttributes Attributes { get; set; }
Property Value
Type Description
System.IO.FileAttributes
| Improve this Doc View Source

Exists

Declaration
[NotImplemented]
public bool Exists { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Extension

Declaration
public string Extension { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

FullName

Declaration
[NotImplemented]
public virtual string FullName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Length

Declaration
public virtual long Length { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

OpenRead()

Declaration
public Stream OpenRead()
Returns
Type Description
System.IO.Stream
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
  • Improve this Doc
  • View Source