点击或拖拽改变大小

DirExGetFiles 方法

Sweet 开发框架
获取指定目录中的匹配文件

命名空间:  Sweet.Common
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static string[] GetFiles(
	string dir,
	string regexPattern = null,
	int depth = 0,
	bool throwEx = false
)

参数

dir
类型:SystemString
要搜索的目录
regexPattern (Optional)
类型:SystemString
文件名模式(正则)。null表示忽略模式匹配,返回所有文件
depth (Optional)
类型:SystemInt32
递归深度。负数表示不限,0表示仅顶级
throwEx (Optional)
类型:SystemBoolean
是否抛异常

返回值

类型:String
结果
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架