Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.
The Directory type exposes the following members.
Methods
Name | Description | |
---|---|---|
CreateDirectory(String) | Creates all directories and subdirectories as specified by path. | |
CreateDirectory(String, DirectorySecurity) | Creates all the directories in the specified path, applying the specified Windows security. | |
Delete(String) | Deletes an empty directory from a specified path. | |
Delete(String, Boolean) | Deletes the specified directory and, if indicated, any subdirectories and files in the directory. | |
EnumerateDirectories(String) | Returns an enumerable collection of directory names in a specified path. | |
EnumerateDirectories(String, String) | Returns an enumerable collection of directory names that match a search pattern in a specified path. | |
EnumerateDirectories(String, String, SearchOption) | Returns an
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
|