private bool bolThrowIOException = true;
/// <summary>
/// 发生IO错误时是否抛出异常
/// </summary>
public bool ThrowIOException
{
get { return this.bolThrowIOException; }
set { this.bolThrowIOException = value; }
}
private bool bolReturnStringType = true;
/// <summary>
/// 是否以字符串方式返回查询结果,若返回true则当前对象返回为字符串,
/// 否则返回 System.IO.FileInfo或System.IO.DirectoryInfo类型
/// </summary>
public bool ReturnStringType
{
get { return bolReturnStringType; }
set { bolReturnStringType = value; }
}
private string strSearchPattern = "*";
/// <summary>
/// 要匹配的文件或目录名,支持通配符
文章来源于领测软件测试网 https://www.ltesting.net/