Share via


IFileInfo Interface

 

Represents a file in the given file system.

Namespace:   Microsoft.Owin.FileSystems
Assembly:  Microsoft.Owin.FileSystems (in Microsoft.Owin.FileSystems.dll)

Syntax

public interface IFileInfo
public interface class IFileInfo
type IFileInfo = interface end
Public Interface IFileInfo

Properties

Name Description
System_CAPS_pubproperty IsDirectory

True for the case TryGetDirectoryContents has enumerated a sub-directory

System_CAPS_pubproperty LastModified

When the file was last modified

System_CAPS_pubproperty Length

The length of the file in bytes, or -1 for a directory info

System_CAPS_pubproperty Name

The name of the file

System_CAPS_pubproperty PhysicalPath

The path to the file, including the file name. Return null if the file is not directly accessible.

Methods

Name Description
System_CAPS_pubmethod CreateReadStream()

Return file contents as readonly stream. Caller should dispose stream when complete.

See Also

Microsoft.Owin.FileSystems Namespace

Return to top