편집

다음을 통해 공유


DirectoryInfo Class

Definition

public ref class DirectoryInfo sealed : Microsoft::IO::FileSystemInfo
public sealed class DirectoryInfo : Microsoft.IO.FileSystemInfo
type DirectoryInfo = class
    inherit FileSystemInfo
Public NotInheritable Class DirectoryInfo
Inherits FileSystemInfo
Inheritance

Constructors

DirectoryInfo(String)

Fields

FullPath (Inherited from FileSystemInfo)
OriginalPath (Inherited from FileSystemInfo)

Properties

Attributes (Inherited from FileSystemInfo)
CreationTime (Inherited from FileSystemInfo)
CreationTimeUtc (Inherited from FileSystemInfo)
Exists (Inherited from FileSystemInfo)
Extension (Inherited from FileSystemInfo)
FullName (Inherited from FileSystemInfo)
LastAccessTime (Inherited from FileSystemInfo)
LastAccessTimeUtc (Inherited from FileSystemInfo)
LastWriteTime (Inherited from FileSystemInfo)
LastWriteTimeUtc (Inherited from FileSystemInfo)
LinkTarget (Inherited from FileSystemInfo)
Name (Inherited from FileSystemInfo)
Parent
Root

Methods

Create()
CreateAsSymbolicLink(String) (Inherited from FileSystemInfo)
CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
CreateSubdirectory(String)
Delete()
Delete(Boolean)
EnumerateDirectories()
EnumerateDirectories(String, EnumerationOptions)
EnumerateDirectories(String, SearchOption)
EnumerateDirectories(String)
EnumerateFiles()
EnumerateFiles(String, EnumerationOptions)
EnumerateFiles(String, SearchOption)
EnumerateFiles(String)
EnumerateFileSystemInfos()
EnumerateFileSystemInfos(String, EnumerationOptions)
EnumerateFileSystemInfos(String, SearchOption)
EnumerateFileSystemInfos(String)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetDirectories()
GetDirectories(String, EnumerationOptions)
GetDirectories(String, SearchOption)
GetDirectories(String)
GetFiles()
GetFiles(String, EnumerationOptions)
GetFiles(String, SearchOption)
GetFiles(String)
GetFileSystemInfos()
GetFileSystemInfos(String, EnumerationOptions)
GetFileSystemInfos(String, SearchOption)
GetFileSystemInfos(String)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetObjectData(SerializationInfo, StreamingContext) (Inherited from FileSystemInfo)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
MoveTo(String)
Refresh() (Inherited from FileSystemInfo)
ResolveLinkTarget(Boolean) (Inherited from FileSystemInfo)
ToString() (Inherited from FileSystemInfo)

Applies to