C#使用WIN32API來遍歷文件和目錄[3]

發表于:2008-04-23來源:作者:點擊數: 標簽:文件遍歷目錄
關鍵字:C# WIN32API#region控制對象特性的一些屬性**************************************** privateboolbolThrowIOException=true; ///summary ///發生IO錯誤時是否拋出異常 ////summary publicboolThrowIOException { get{returnthis.bolThrowIOException
關鍵字:C# WIN32API    #region 控制對象特性的一些屬性 **************************************** 
   
   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.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97