IFileInfo Interface

 

Represents a file in the given file system.

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

public interface class IFileInfo

NameDescription
System_CAPS_pubpropertyIsDirectory

True for the case TryGetDirectoryContents has enumerated a sub-directory

System_CAPS_pubpropertyLastModified

When the file was last modified

System_CAPS_pubpropertyLength

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

System_CAPS_pubpropertyName

The name of the file

System_CAPS_pubpropertyPhysicalPath

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

NameDescription
System_CAPS_pubmethodCreateReadStream()

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

Return to top
Show: