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 | |
---|---|---|
![]() |
IsDirectory | True for the case TryGetDirectoryContents has enumerated a sub-directory |
![]() |
LastModified | When the file was last modified |
![]() |
Length | The length of the file in bytes, or -1 for a directory info |
![]() |
Name | The name of the file |
![]() |
PhysicalPath | The path to the file, including the file name. Return null if the file is not directly accessible. |
Methods
Name | Description | |
---|---|---|
![]() |
CreateReadStream() | Return file contents as readonly stream. Caller should dispose stream when complete. |
See Also
Microsoft.Owin.FileSystems Namespace
Return to top