PhysicalDirectoryInfo Class
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 directory on a physical file system.
public ref class PhysicalDirectoryInfo : Microsoft::Extensions::FileProviders::IFileInfo
public class PhysicalDirectoryInfo : Microsoft.Extensions.FileProviders.IFileInfo
type PhysicalDirectoryInfo = class
interface IFileInfo
Public Class PhysicalDirectoryInfo
Implements IFileInfo
- Inheritance
-
PhysicalDirectoryInfo
- Implements
Constructors
| PhysicalDirectoryInfo(DirectoryInfo) |
Initializes an instance of PhysicalDirectoryInfo that wraps an instance of DirectoryInfo. |
Properties
| Exists |
Gets a value that indicates if the resource exists in the underlying storage system. |
| IsDirectory |
Always |
| LastModified |
Gets the time when the directory was last written to. |
| Length |
Always equals -1. |
| Name |
Gets the name of the file or directory, excluding the path. |
| PhysicalPath |
Gets the full path to the file, including the file name. |
Methods
| CreateReadStream() |
Always throws an exception because read streams are not support on directories. |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |