IFileInfo Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a file in the given file provider.
public interface class IFileInfo
public interface IFileInfo
type IFileInfo = interface
Public Interface IFileInfo
- Derived
Properties
Exists |
True if resource exists in the underlying storage system. |
IsDirectory |
True for the case TryGetDirectoryContents has enumerated a sub-directory. |
LastModified |
Gets when the file was last modified. |
Length |
The length of the file in bytes, or -1 for a directory or non-existing files. |
Name |
The name of the file or directory, not including any path. |
PhysicalPath |
The path to the file, including the file name. Return null if the file is not directly accessible. |
Methods
CreateReadStream() |
Return file contents as readonly stream. Caller should dispose stream when complete. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru