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>
/// 要匹配的文件或目錄名,支持通配符
文章來源于領測軟件測試網 http://www.kjueaiud.com/