C# Class System.IO.DirectoryInfo

Inheritance: FileSystemInfo
Exibir arquivo Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
CreateSubdirectory ( string path ) : System.IO.DirectoryInfo
DirectoryInfo ( string path )
EnumerateDirectories ( ) : IEnumerable
EnumerateDirectories ( String searchPattern ) : IEnumerable
EnumerateDirectories ( String searchPattern, SearchOption searchOption ) : IEnumerable
EnumerateDirectories ( ) : System.Collections.Generic.IEnumerable
EnumerateDirectories ( string searchPattern ) : System.Collections.Generic.IEnumerable
EnumerateDirectories ( string searchPattern, System searchOption ) : System.Collections.Generic.IEnumerable
EnumerateFileSystemInfos ( ) : IEnumerable
EnumerateFileSystemInfos ( String searchPattern ) : IEnumerable
EnumerateFileSystemInfos ( String searchPattern, SearchOption searchOption ) : IEnumerable
EnumerateFileSystemInfos ( ) : System.Collections.Generic.IEnumerable
EnumerateFileSystemInfos ( string searchPattern ) : System.Collections.Generic.IEnumerable
EnumerateFileSystemInfos ( string searchPattern, System searchOption ) : System.Collections.Generic.IEnumerable
EnumerateFiles ( ) : IEnumerable
EnumerateFiles ( String searchPattern ) : IEnumerable
EnumerateFiles ( String searchPattern, SearchOption searchOption ) : IEnumerable
EnumerateFiles ( ) : System.Collections.Generic.IEnumerable
EnumerateFiles ( string searchPattern ) : System.Collections.Generic.IEnumerable
EnumerateFiles ( string searchPattern, System searchOption ) : System.Collections.Generic.IEnumerable
GetDirectories ( ) : System.IO.DirectoryInfo[]
GetDirectories ( String searchPattern ) : System.IO.DirectoryInfo[]
GetDirectories ( String searchPattern, SearchOption searchOption ) : System.IO.DirectoryInfo[]
GetDirectories ( ) : System.IO.DirectoryInfo[]
GetDirectories ( string searchPattern ) : System.IO.DirectoryInfo[]
GetDirectories ( string searchPattern, System searchOption ) : System.IO.DirectoryInfo[]
GetFileSystemInfos ( ) : System.IO.FileSystemInfo[]
GetFileSystemInfos ( String searchPattern ) : System.IO.FileSystemInfo[]
GetFileSystemInfos ( String searchPattern, SearchOption searchOption ) : System.IO.FileSystemInfo[]
GetFileSystemInfos ( ) : System.IO.FileSystemInfo[]
GetFileSystemInfos ( string searchPattern ) : System.IO.FileSystemInfo[]
GetFileSystemInfos ( string searchPattern, System searchOption ) : System.IO.FileSystemInfo[]
GetFiles ( ) : System.IO.FileInfo[]
GetFiles ( String searchPattern, SearchOption searchOption ) : System.IO.FileInfo[]
GetFiles ( ) : System.IO.FileInfo[]
GetFiles ( string searchPattern ) : System.IO.FileInfo[]
GetFiles ( string searchPattern, System searchOption ) : System.IO.FileInfo[]
MoveTo ( string destDirName ) : void
ToString ( ) : String

Returns the original path. Use FullPath or Name properties for the path / directory name.

ToString ( ) : string

Private Methods

Method Description
Create ( ) : void
CreateSubdirectory ( String path ) : DirectoryInfo
CreateSubdirectoryHelper ( String path ) : DirectoryInfo
Delete ( ) : void
Delete ( bool recursive ) : void
DirectoryInfo ( SerializationInfo info, StreamingContext context ) : System.Collections.Generic
DirectoryInfo ( String path ) : System.Collections.Generic
DirectoryInfo ( String fullPath, String originalPath ) : System.Collections.Generic
DirectoryInfo ( string fullPath, Interop &findData ) : System.Diagnostics
GetDirName ( String fullPath ) : String
GetDisplayName ( String originalPath ) : String
GetFiles ( String searchPattern ) : System.IO.FileInfo[]
InternalEnumerateDirectories ( String searchPattern, SearchOption searchOption ) : IEnumerable
InternalEnumerateFileSystemInfos ( String searchPattern, SearchOption searchOption ) : IEnumerable
InternalEnumerateFiles ( String searchPattern, SearchOption searchOption ) : IEnumerable
InternalGetDirectories ( String searchPattern, SearchOption searchOption ) : System.IO.DirectoryInfo[]
InternalGetFileSystemInfos ( String searchPattern, SearchOption searchOption ) : System.IO.FileSystemInfo[]
InternalGetFiles ( String searchPattern, SearchOption searchOption ) : System.IO.FileInfo[]
MoveTo ( String destDirName ) : void

Method Details

CreateSubdirectory() public method

public CreateSubdirectory ( string path ) : System.IO.DirectoryInfo
path string
return System.IO.DirectoryInfo

DirectoryInfo() public method

public DirectoryInfo ( string path )
path string

EnumerateDirectories() public method

public EnumerateDirectories ( ) : IEnumerable
return IEnumerable

EnumerateDirectories() public method

public EnumerateDirectories ( String searchPattern ) : IEnumerable
searchPattern String
return IEnumerable

EnumerateDirectories() public method

public EnumerateDirectories ( String searchPattern, SearchOption searchOption ) : IEnumerable
searchPattern String
searchOption SearchOption
return IEnumerable

EnumerateDirectories() public method

public EnumerateDirectories ( ) : System.Collections.Generic.IEnumerable
return System.Collections.Generic.IEnumerable

EnumerateDirectories() public method

public EnumerateDirectories ( string searchPattern ) : System.Collections.Generic.IEnumerable
searchPattern string
return System.Collections.Generic.IEnumerable

EnumerateDirectories() public method

public EnumerateDirectories ( string searchPattern, System searchOption ) : System.Collections.Generic.IEnumerable
searchPattern string
searchOption System
return System.Collections.Generic.IEnumerable

EnumerateFileSystemInfos() public method

public EnumerateFileSystemInfos ( ) : IEnumerable
return IEnumerable

EnumerateFileSystemInfos() public method

public EnumerateFileSystemInfos ( String searchPattern ) : IEnumerable
searchPattern String
return IEnumerable

EnumerateFileSystemInfos() public method

public EnumerateFileSystemInfos ( String searchPattern, SearchOption searchOption ) : IEnumerable
searchPattern String
searchOption SearchOption
return IEnumerable

EnumerateFileSystemInfos() public method

public EnumerateFileSystemInfos ( ) : System.Collections.Generic.IEnumerable
return System.Collections.Generic.IEnumerable

EnumerateFileSystemInfos() public method

public EnumerateFileSystemInfos ( string searchPattern ) : System.Collections.Generic.IEnumerable
searchPattern string
return System.Collections.Generic.IEnumerable

EnumerateFileSystemInfos() public method

public EnumerateFileSystemInfos ( string searchPattern, System searchOption ) : System.Collections.Generic.IEnumerable
searchPattern string
searchOption System
return System.Collections.Generic.IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( ) : IEnumerable
return IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( String searchPattern ) : IEnumerable
searchPattern String
return IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( String searchPattern, SearchOption searchOption ) : IEnumerable
searchPattern String
searchOption SearchOption
return IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( ) : System.Collections.Generic.IEnumerable
return System.Collections.Generic.IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( string searchPattern ) : System.Collections.Generic.IEnumerable
searchPattern string
return System.Collections.Generic.IEnumerable

EnumerateFiles() public method

public EnumerateFiles ( string searchPattern, System searchOption ) : System.Collections.Generic.IEnumerable
searchPattern string
searchOption System
return System.Collections.Generic.IEnumerable

GetDirectories() public method

public GetDirectories ( ) : System.IO.DirectoryInfo[]
return System.IO.DirectoryInfo[]

GetDirectories() public method

public GetDirectories ( String searchPattern ) : System.IO.DirectoryInfo[]
searchPattern String
return System.IO.DirectoryInfo[]

GetDirectories() public method

public GetDirectories ( String searchPattern, SearchOption searchOption ) : System.IO.DirectoryInfo[]
searchPattern String
searchOption SearchOption
return System.IO.DirectoryInfo[]

GetDirectories() public method

public GetDirectories ( ) : System.IO.DirectoryInfo[]
return System.IO.DirectoryInfo[]

GetDirectories() public method

public GetDirectories ( string searchPattern ) : System.IO.DirectoryInfo[]
searchPattern string
return System.IO.DirectoryInfo[]

GetDirectories() public method

public GetDirectories ( string searchPattern, System searchOption ) : System.IO.DirectoryInfo[]
searchPattern string
searchOption System
return System.IO.DirectoryInfo[]

GetFileSystemInfos() public method

public GetFileSystemInfos ( ) : System.IO.FileSystemInfo[]
return System.IO.FileSystemInfo[]

GetFileSystemInfos() public method

public GetFileSystemInfos ( String searchPattern ) : System.IO.FileSystemInfo[]
searchPattern String
return System.IO.FileSystemInfo[]

GetFileSystemInfos() public method

public GetFileSystemInfos ( String searchPattern, SearchOption searchOption ) : System.IO.FileSystemInfo[]
searchPattern String
searchOption SearchOption
return System.IO.FileSystemInfo[]

GetFileSystemInfos() public method

public GetFileSystemInfos ( ) : System.IO.FileSystemInfo[]
return System.IO.FileSystemInfo[]

GetFileSystemInfos() public method

public GetFileSystemInfos ( string searchPattern ) : System.IO.FileSystemInfo[]
searchPattern string
return System.IO.FileSystemInfo[]

GetFileSystemInfos() public method

public GetFileSystemInfos ( string searchPattern, System searchOption ) : System.IO.FileSystemInfo[]
searchPattern string
searchOption System
return System.IO.FileSystemInfo[]

GetFiles() public method

public GetFiles ( ) : System.IO.FileInfo[]
return System.IO.FileInfo[]

GetFiles() public method

public GetFiles ( String searchPattern, SearchOption searchOption ) : System.IO.FileInfo[]
searchPattern String
searchOption SearchOption
return System.IO.FileInfo[]

GetFiles() public method

public GetFiles ( ) : System.IO.FileInfo[]
return System.IO.FileInfo[]

GetFiles() public method

public GetFiles ( string searchPattern ) : System.IO.FileInfo[]
searchPattern string
return System.IO.FileInfo[]

GetFiles() public method

public GetFiles ( string searchPattern, System searchOption ) : System.IO.FileInfo[]
searchPattern string
searchOption System
return System.IO.FileInfo[]

MoveTo() public method

public MoveTo ( string destDirName ) : void
destDirName string
return void

ToString() public method

Returns the original path. Use FullPath or Name properties for the path / directory name.
public ToString ( ) : String
return String

ToString() public method

public ToString ( ) : string
return string