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 filesystem
public ref class PhysicalDirectoryInfo : Microsoft::Extensions::FileProviders::IFileInfo
public ref class PhysicalDirectoryInfo : Microsoft::Extensions::FileProviders::IDirectoryContents, Microsoft::Extensions::FileProviders::IFileInfo, System::Collections::Generic::IEnumerable<Microsoft::Extensions::FileProviders::IFileInfo ^>
public class PhysicalDirectoryInfo : Microsoft.Extensions.FileProviders.IFileInfo
public class PhysicalDirectoryInfo : Microsoft.Extensions.FileProviders.IDirectoryContents, Microsoft.Extensions.FileProviders.IFileInfo, System.Collections.Generic.IEnumerable<Microsoft.Extensions.FileProviders.IFileInfo>
type PhysicalDirectoryInfo = class
interface IFileInfo
type PhysicalDirectoryInfo = class
interface IFileInfo
interface IDirectoryContents
interface seq<IFileInfo>
interface IEnumerable
Public Class PhysicalDirectoryInfo
Implements IFileInfo
Public Class PhysicalDirectoryInfo
Implements IDirectoryContents, IEnumerable(Of IFileInfo), 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 true. |
LastModified |
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) |
GetEnumerator() |
Returns an enumerator that iterates through the collection. |
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) |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |