mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.IO.FileSystemInfo System.Runtime.InteropServices.ComVisible(true)

Use the class for typical operations such as copying, moving, renaming, creating, and deleting directories.

If you are going to reuse an object several times, consider using the instance method of instead of the corresponding static methods of the class, because a security check will not always be necessary.

In members that accept a path as an input string, that path must be well-formed or an exception is raised. For example, if a path is fully qualified but begins with a space, the path is not trimmed in methods of the class. Therefore, the path is malformed and an exception is raised. Similarly, a path or a combination of paths cannot be fully qualified twice. For example, "c:\temp c:\windows" also raises an exception in most cases. Ensure that your paths are well-formed when using methods that accept a path string.

In members that accept a path, the path can refer to a file or just a directory. The specified path can also refer to a relative path or a Universal Naming Convention (UNC) path for a server and share name. For example, all the following are acceptable paths:

"c:\\MyDir\\MyFile.txt" in C#, or "c:\MyDir\MyFile.txt" in Visual Basic.

"c:\\MyDir" in C#, or "c:\MyDir" in Visual Basic.

"MyDir\\MySubdir" in C#, or "MyDir\MySubDir" in Visual Basic.

"\\\\MyServer\\MyShare" in C#, or "\\MyServer\MyShare" in Visual Basic.

By default, full read/write access to new directories is granted to all users.

For a list of common I/O tasks, see Common I/O Tasks.

Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  This constructor does not check if a directory exists. This constructor is a placeholder for a string that is used to access the disk in subsequent operations.

  The parameter can be a file name, including a file on a Universal Naming Convention (UNC) share.

  When you compile a set of characters with a particular cultural setting and retrieve those same characters with a different cultural setting, the characters might not be interpretable, and could cause an exception to be thrown.

  For a list of common I/O tasks, see Common I/O Tasks.

  Initializes a new instance of the class on the specified path.

  A string specifying the path on which to create the DirectoryInfo.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void

  If the directory already exists, this method does nothing.

  For a list of common I/O tasks, see Common I/O Tasks.

  Creates a directory.

- Method
  2.0.0.0
  4.0.0.0
  System.Void ``

  Use this method overload to create a directory with access control, so there is no chance the directory can be accessed before security is applied.

  If the directory already exists, this method does nothing.

  For a list of common I/O tasks, see Common I/O Tasks.

  Creates a directory using a object.

  The access control to apply to the directory.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.DirectoryInfo ``

  Any and all directories specified in are created, unless some part of is invalid. The parameter specifies a directory path, not a file path. If the subdirectory already exists, this method does nothing.

  Path names are limited to 248 characters.

  For a list of common I/O tasks, see Common I/O Tasks.

  Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the class.

  The last directory specified in .

  The specified path. This cannot be a different disk volume or Universal Naming Convention (UNC) name.
- Method
  2.0.0.0
  4.0.0.0
  System.IO.DirectoryInfo `` ``

  Any and all directories specified in are created, unless some part of is invalid. The parameter specifies a directory path, not a file path. If the subdirectory already exists, this method does nothing.

  Path names are limited to 248 characters.

  For a list of common I/O tasks, see Common I/O Tasks.

  Creates a subdirectory or subdirectories on the specified path with the specified security. The specified path can be relative to this instance of the class.

  The last directory specified in .

  The specified path. This cannot be a different disk volume or Universal Naming Convention (UNC) name. The security to apply.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void

  For a list of common I/O tasks, see Common I/O Tasks.

  Deletes this if it is empty.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void ``

  If the DirectoryInfo has no files or subdirectories, this method deletes the DirectoryInfo even if is false. Attempting to delete a DirectoryInfo that is not empty when is false throws an .

  For a list of common I/O tasks, see Common I/O Tasks.

  Deletes this instance of a , specifying whether to delete subdirectories and files.

  true to delete this directory, its subdirectories, and all files; otherwise, false.
- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.DirectoryInfo>

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of directory information in the current directory.

  An enumerable collection of directories in the current directory.

- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.DirectoryInfo> ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of directory information that matches a specified search pattern.

  An enumerable collection of directories that matches .

  The search string to match against the names of directories. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files.
- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.DirectoryInfo> `` ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of directory information that matches a specified search pattern and search subdirectory option.

  An enumerable collection of directories that matches and .

  The search string to match against the names of directories. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files. One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories. The default value is .
- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.FileInfo>

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of file information in the current directory.

  An enumerable collection of the files in the current directory.

- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.FileInfo> ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of file information that matches a search pattern.

  An enumerable collection of files that matches .

  The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files.
- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.FileInfo> `` ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of file information that matches a specified search pattern and search subdirectory option.

  An enumerable collection of files that matches and .

  The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files. One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories. The default value is .
- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo>

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of file system information in the current directory.

  An enumerable collection of file system information in the current directory.

- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo> ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of file system information that matches a specified search pattern.

  An enumerable collection of file system information objects that matches .

  The search string to match against the names of directories. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files.
- Method
  4.0.0.0
  System.Collections.Generic.IEnumerable<System.IO.FileSystemInfo> `` ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  This method pre-populates the values of the following properties:

  The returned collection is not cached; each call to the method on the collection will start a new enumeration.

  Returns an enumerable collection of file system information that matches a specified search pattern and search subdirectory option.

  An enumerable collection of file system information objects that matches and .

  The search string to match against the names of directories. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files. One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories. The default value is .
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  The property returns false if any error occurs while trying to determine if the specified file exists. This can occur in situations that raise exceptions such as passing a file name with invalid characters or too many characters, a failing or missing disk, or if the caller does not have permission to read the file.

  Gets a value indicating whether the directory exists.

- Method
  2.0.0.0
  4.0.0.0
  System.Security.AccessControl.DirectorySecurity

  Calling this method overload is equivalent to calling the method overload and specifying the access control sections | | ( Or Or in Visual Basic).

  Use the method to retrieve the access control list (ACL) entries for the current file.

  An ACL describes individuals and/or groups who have, or do not have, rights to specific actions on the given file or directory. For more information, see ACL Technology Overview and How to: Add or Remove an Access Control List Entry.

  Gets a object that encapsulates the access control list (ACL) entries for the directory described by the current object.

  A object that encapsulates the access control rules for the directory.

- Method
  2.0.0.0
  4.0.0.0
  System.Security.AccessControl.DirectorySecurity ``

  Use the method to retrieve the access control list (ACL) entries for the current file.

  An ACL describes individuals and/or groups who have, or do not have, rights to specific actions on the given file or directory. For more information, see ACL Technology Overview and How to: Add or Remove an Access Control List Entry.

  Gets a object that encapsulates the specified type of access control list (ACL) entries for the directory described by the current object.

  A object that encapsulates the access control rules for the file described by the parameter.

  Exceptions

  Exception type

  Condition

  The directory could not be found or modified.

  The current process does not have access to open the directory.

  An I/O error occurred while opening the directory.

  The current operating system is not Microsoft Windows 2000 or later.

  The directory is read-only.

  -or-

  This operation is not supported on the current platform.

  -or-

  The caller does not have the required permission.

  One of the values that specifies the type of access control list (ACL) information to receive.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.DirectoryInfo[]

  If there are no subdirectories, this method returns an empty array. This method is not recursive.

  This method pre-populates the values of the following properties:

  Returns the subdirectories of the current directory.

  An array of objects.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.DirectoryInfo[] ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  This method pre-populates the values of the following properties:

  Returns an array of directories in the current matching the given search criteria.

  An array of type DirectoryInfo matching .

  The search string to match against the names of directories. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files.
- Method
  2.0.0.0
  4.0.0.0
  System.IO.DirectoryInfo[] `` ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  If there are no subdirectories, or no subdirectories match the parameter, this method returns an empty array.

  This method pre-populates the values of the following properties:

  Returns an array of directories in the current matching the given search criteria and using a value to determine whether to search subdirectories.

  An array of type DirectoryInfo matching .

  The search string to match against the names of directories. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files. One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.FileInfo[]

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  If there are no files in the , this method returns an empty array.

  The order of the returned file names is not guaranteed; use the method if a specific sort order is required.

  This method pre-populates the values of the following properties:

  Returns a file list from the current directory.

  An array of type .

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.FileInfo[] ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". The string "s*" searches for all names in beginning with the letter "s".

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  If there are no files in the , this method returns an empty array.

  The following wildcard specifiers are permitted in the parameter.

  Wildcard character

  Description

  *

  Zero or more characters.

  ?

  Exactly one character.

  The order of the returned file names is not guaranteed; use the method if a specific sort order is required.

  Wildcards are permitted. For example, the string "*.txt" searches for all file names having an extension of "txt". The string "s*" searches for all file names beginning with the letter "s". If there are no files, or no files that match the string in the , this method returns an empty array.

  When using the asterisk wildcard character in a (for example, "*.txt"), the matching behavior varies depending on the length of the specified file extension. A with a file extension of exactly three characters returns files with an extension of three or more characters, where the first three characters match the file extension specified in the . A with a file extension of one, two, or more than three characters returns only files with extensions of exactly that length that match the file extension specified in the . When using the question mark wildcard character, this method returns only files that match the specified file extension. For example, given two files in a directory, "file1.txt" and "file1.txtother", a search pattern of "file?.txt" returns only the first file, while a search pattern of "file*.txt" returns both files.

  Because this method checks against file names with both the 8.3 file name format and the long file name format, a search pattern similar to "*1*.txt" may return unexpected file names. For example, using a search pattern of "*1*.txt" will return "longfilename.txt" because the equivalent 8.3 file name format would be "longf~1.txt".

  This method pre-populates the values of the following properties:

  Returns a file list from the current directory matching the given search pattern.

  An array of type .

  The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files.
- Method
  2.0.0.0
  4.0.0.0
  System.IO.FileInfo[] `` ``

  The and methods differ as follows:

  When you use , you can start enumerating the collection of objects before the whole collection is returned.

  When you use , you must wait for the whole array of objects to be returned before you can access the array.

  Therefore, when you are working with many files and directories, can be more efficient.

  If there are no files in the , this method returns an empty array.

  The following wildcard specifiers are permitted in .

  Wildcard character

  Description

  *

  Zero or more characters.

  ?

  Exactly one character.

  The order of the returned file names is not guaranteed; use the method if a specific sort order is required.

  Wildcards are permitted. For example, the string "*.txt" searches for all file names having an extension of "txt". The string "s*" searches for all file names beginning with the letter "s". If there are no files, or no files that match the string in the , this method returns an empty array.

  When using the asterisk wildcard character in a (for example, "*.txt"), the matching behavior varies depending on the length of the specified file extension. A with a file extension of exactly three characters returns files with an extension of three or more characters, where the first three characters match the file extension specified in the . A with a file extension of one, two, or more than three characters returns only files with extensions of exactly that length that match the file extension specified in the . When using the question mark wildcard character, this method returns only files that match the specified file extension. For example, given two files in a directory, "file1.txt" and "file1.txtother", a search pattern of "file?.txt" returns only the first file, while a search pattern of "file*.txt" returns both files.

  The following list shows the behavior of different lengths for the parameter:

  "*.abc" returns files having an extension of.abc,.abcd,.abcde,.abcdef, and so on.

  "*.abcd" returns only files having an extension of.abcd.

  "*.abcde" returns only files having an extension of.abcde.

  "*.abcdef" returns only files having an extension of.abcdef.

  Because this method checks against file names with both the 8.3 file name format and the long file name format, a search pattern similar to "*1*.txt" may return unexpected file names. For example, using a search pattern of "*1*.txt" will return "longfilename.txt" because the equivalent 8.3 file name format would be "longf~1.txt".

  This method pre-populates the values of the following properties:

  Returns a file list from the current directory matching the given search pattern and using a value to determine whether to search subdirectories.

  An array of type .

  The search string to match against the names of files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files. One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.FileSystemInfo[]

  If there are no files or directories in the , this method returns an empty array. This method is not recursive.

  For subdirectories, the objects returned by this method can be cast to the derived class . Use the value returned by the property to determine whether the represents a file or a directory.

  This method pre-populates the values of the following properties:

  Returns an array of strongly typed entries representing all the files and subdirectories in a directory.

  An array of strongly typed entries.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.FileSystemInfo[] ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  This method is not recursive.

  For subdirectories, the objects returned by this method can be cast to the derived class . Use the value returned by the property to determine whether the represents a file or a directory.

  Wild cards are permitted. For example, the string "*t" searches for all directory names in ending with the letter "t". The string "s*" searches for all directory names in beginning with the letter "s".

  The string ".." can only be used in if it is specified as a part of a valid directory name, such as in the directory name "a..b". It cannot be used to move up the directory hierarchy. If there are no files or directories, or no files or directories that match the string in the , this method returns an empty array.

  This method pre-populates the values of the following properties:

  Retrieves an array of strongly typed objects representing the files and subdirectories that match the specified search criteria.

  An array of strongly typed FileSystemInfo objects matching the search criteria.

  The search string to match against the names of directories and files. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files.
- Method
  4.0.0.0
  System.IO.FileSystemInfo[] `` ``

  can be a combination of literal and wildcard characters, but doesn't support regular expressions. The following wildcard specifiers are permitted in .

  Wildcard specifier

  Matches

  * (asterisk)

  Zero or more characters in that position.

  ? (question mark)

  Zero or one character in that position.

  Characters other than the wildcard are literal characters. For example, the string "*t" searches for all names in ending with the letter "t". ". The string "s*" searches for all names in beginning with the letter "s".

  For subdirectories, the objects returned by this method can be cast to the derived class . Use the value returned by the property to determine whether the represents a file or a directory.

  This method pre-populates the values of the following properties:

  Retrieves an array of objects that represent the files and subdirectories matching the specified search criteria.

  An array of file system entries that match the search criteria.

  The search string to match against the names of directories and filesa. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files. One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories. The default value is .
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void ``

  This method throws an if, for example, you try to move c:\mydir to c:\public, and c:\public already exists. You must specify "c:\\public\\mydir" as the parameter, or specify a new directory name such as "c:\\newdir".

  This method permits moving a directory to a read-only directory. The read/write attribute of neither directory is affected.

  For a list of common I/O tasks, see Common I/O Tasks.

  Moves a instance and its contents to a new path.

  The name and path to which to move this directory. The destination cannot be another disk volume or a directory with the identical name. It can be an existing directory to which you want to add this directory as a subdirectory.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added.

  This property returns only the name of the directory, such as "Bin". To get the full path, such as "c:\public\Bin", use the property.

  The property of a requires no permission (beyond the read permission to the directory necessary to construct the ) but can give out the directory name. If it is necessary to hand out a to a protected directory with a cryptographically secure name, create a dummy directory for the untrusted code’s use.

  For a list of common I/O tasks, see Common I/O Tasks.

  Gets the name of this instance.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.DirectoryInfo To be added: an object of type 'DirectoryInfo'

  For a list of common I/O tasks, see Common I/O Tasks.

  Gets the parent directory of a specified subdirectory.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.IO.DirectoryInfo To be added: an object of type 'DirectoryInfo' To be added

  Gets the root portion of the directory.

- Method
  2.0.0.0
  4.0.0.0
  System.Void ``

  An access control list (ACL) describes individuals and/or groups who have, or do not have, rights to specific actions on the given file or directory. For more information, see ACL Technology Overview and How to: Add or Remove an Access Control List Entry.

  The method applies ACL entries to a file that represents the noninherited ACL list.

  The ACL specified for replaces the existing ACL for the directory. To add permissions for a new user, use the method to obtain the existing ACL, and modify it.

  The method persists only objects that have been modified after object creation. If a object has not been modified, it will not be persisted to a file. Therefore, it is not possible to retrieve a object from one file and reapply the same object to another file.

  To copy ACL information from one file to another:

  Use the method to retrieve the object from the source file.

  Create a new object for the destination file.

  Use the or method of the source object to retrieve the ACL information.

  Use the or method to copy the information retrieved in step 3 to the destination object.

  Set the destination object to the destination file using the method.

  Applies access control list (ACL) entries described by a object to the directory described by the current object.

  An object that describes an ACL entry to apply to the directory described by the parameter.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added.

  Returns the original path that was passed by the user.

  Returns the original path that was passed by the user.