Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IFileInfo Interface
Definition
- Namespace:
- Microsoft.Extensions.FileProviders
- Assembly:
- Microsoft.Extensions.FileProviders.Abstractions.dll
- Package:
- Microsoft.Extensions.FileProviders.Abstractions v11.0.0-preview.5.26302.115
- Source:
- IFileInfo.cs
- Source:
- IFileInfo.cs
- Source:
- IFileInfo.cs
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
| Name | Description |
|---|---|
| Exists |
Gets a value that indicates if the resource exists in the underlying storage system. |
| IsDirectory |
Gets a value that indicates whether |
| LastModified |
Gets the time when the file was last modified. |
| Length |
Gets the length of the file in bytes, or -1 for a directory or nonexistent file. |
| Name |
Gets the name of the file or directory, not including any path. |
| PhysicalPath |
Gets the path to the file, including the file name. Returns |
Methods
| Name | Description |
|---|---|
| CreateReadStream() |
Returns file contents as a read-only stream. |
Applies to
Feedback
Was this page helpful?
