GetValue() private method

private GetValue ( string pathname ) : string
pathname string
return string
コード例 #1
0
ファイル: Wmi.cs プロジェクト: OwenSmith/win-xenguestagent
 public bool Exists()
 {
     try
     {
         wmisession.GetValue(name);
         return(true);
     }
     catch (ManagementException me) {
         if (me.ErrorCode == ManagementStatus.AccessDenied)
         {
             throw;
         }
         return(false);
     }
     catch
     {
         return(false);
     }
 }