DirectoryHelperGetDirectories Method (String, String, Boolean) | Helper帮助文档 |
获取指定目录及子目录中所有子目录列表
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static string[] GetDirectories( string directoryPath, string searchPattern, bool isSearchChild )
Public Shared Function GetDirectories ( directoryPath As String, searchPattern As String, isSearchChild As Boolean ) As String()
public: static array<String^>^ GetDirectories( String^ directoryPath, String^ searchPattern, bool isSearchChild )
static member GetDirectories : directoryPath : string * searchPattern : string * isSearchChild : bool -> string[]
Parameters
- directoryPath
- Type: SystemString
指定目录的绝对路径 - searchPattern
- Type: SystemString
模式字符串,"*"代表0或N个字符,"?"代表1个字符。 范例:"Log*.xml"表示搜索所有以Log开头的Xml文件。 - isSearchChild
- Type: SystemBoolean
是否搜索子目录
Return Value
Type: String[Missing <returns> documentation for "M:HD.Common.DirectoryHelper.GetDirectories(System.String,System.String,System.Boolean)"]
See Also