November Happy Hour will be moved to Thursday December 5th.

Class FileInfo

Represent a meta file information.

Inheritance
System.Object
FileInfo
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data.Meta
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 13.30.0
Syntax
public class FileInfo

Constructors

FileInfo(Guid)

Initializes a new instance of the FileInfo class.

Declaration
public FileInfo(Guid FileUID)
Parameters
Type Name Description
System.Guid FileUID

The file UID.

FileInfo(String)

Initializes a new instance of the FileInfo class.

Declaration
public FileInfo(string fileName)
Parameters
Type Name Description
System.String fileName

Name of the file.

FileInfo(String, Stream)

Declaration
public FileInfo(string fileName, Stream stream)
Parameters
Type Name Description
System.String fileName
System.IO.Stream stream

Properties

ContentType

Gets the content type string.

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

The content type string.

FileUID

Gets the file UID.

Declaration
public Guid FileUID { get; }
Property Value
Type Description
System.Guid

The file UID.

Handle

Gets the handle.

Declaration
public int? Handle { get; }
Property Value
Type Description
System.Nullable<System.Int32>

The handle.

Length

Gets the length.

Declaration
public int Length { get; }
Property Value
Type Description
System.Int32

The length.

Name

Gets the name.

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

The name.

Methods

OpenRead()

Opens the read.

Declaration
public Stream OpenRead()
Returns
Type Description
System.IO.Stream

OpenReadWrite()

Opens the read write.

Declaration
public Stream OpenReadWrite()
Returns
Type Description
System.IO.Stream

OpenWrite()

Opens the write.

Declaration
public Stream OpenWrite()
Returns
Type Description
System.IO.Stream