다음을 통해 공유


IFileInfo Interface

Definition

Represents a file in the given file provider.

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

Properties

Exists

Gets a value that indicates if the resource exists in the underlying storage system.

IsDirectory

Gets a value that indicates whether TryGetDirectoryContents has enumerated a subdirectory.

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 null if the file is not directly accessible.

Methods

CreateReadStream()

Returns file contents as a read-only stream.

Applies to