202 references to ManagementStatus
System.Management (202)
Instrumentation\Attributes.cs (1)
70ManagementException.ThrowWithExtendedInfo(ManagementStatus.InvalidNamespace);
Instrumentation\EventSource.cs (2)
290ManagementException.ThrowWithExtendedInfo((ManagementStatus)hresult); 326ManagementException.ThrowWithExtendedInfo((ManagementStatus)hresult);
Instrumentation\SchemaMapping.cs (2)
74 if(e.ErrorCode != ManagementStatus.NotFound) 500 if(e.ErrorCode != ManagementStatus.NotFound)
Instrumentation\SchemaRegistration.cs (9)
312if(e.ErrorCode != ManagementStatus.NotFound) 761if(e.ErrorCode == ManagementStatus.NotFound) 784if( ManagementStatus.InvalidNamespace != e.ErrorCode 785&& ManagementStatus.InvalidClass != e.ErrorCode 786&& ManagementStatus.NotFound != e.ErrorCode 806 if (ManagementStatus.InvalidNamespace != e.ErrorCode && ManagementStatus.InvalidClass != e.ErrorCode && ManagementStatus.NotFound != e.ErrorCode) 829if(e.ErrorCode != ManagementStatus.NotFound)
InteropClasses\WMIInterop.cs (1)
159if(hr == (int)ManagementStatus.InvalidObject)
managementbaseobject.cs (16)
337ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 438int status = (int)ManagementStatus.NoError; 447if (status == (int)ManagementStatus.NoError) 451if (status == (int)ManagementStatus.NoError) 458ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 615int status = (int)ManagementStatus.NoError; 630ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 657ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 703if (exc.ErrorCode == ManagementStatus.NotFound) 788int status = (int) ManagementStatus.NoError; 798if ((int)ManagementStatus.Different == status) 800else if ((int)ManagementStatus.NoError == status) 803ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 822int status = (int)ManagementStatus.NoError; 829ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 851ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
managementclass.cs (21)
88 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 351 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 471 int status = (int)ManagementStatus.NoError; 491 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 607 int status = (int)ManagementStatus.NoError; 625 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 695 int status = (int)ManagementStatus.NoError; 714 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 766 int status = (int)ManagementStatus.NoError; 783 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 868 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 931 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 964 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1072 int status = (int)ManagementStatus.NoError; 1094 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1183 int status = (int)ManagementStatus.NoError; 1202 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1278 int status = (int)ManagementStatus.NoError; 1301 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1383 int status = (int)ManagementStatus.NoError; 1402 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
managementeventargs.cs (6)
135 /// <para>A <see cref='System.Management.ManagementStatus'/> value 138 public ManagementStatus Status 141 return (ManagementStatus) status; 306 /// <para>A <see cref='System.Management.ManagementStatus'/> value representing the status of the 309 public ManagementStatus Status 312 return (ManagementStatus) status;
managementeventwatcher.cs (6)
401int status = (int)ManagementStatus.NoError; 440ManagementException.ThrowWithExtendedInfo(ManagementStatus.Timedout); 484ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 540ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 564FireStopped (new StoppedEventArgs (options.Context, (int)ManagementStatus.OperationCanceled)); 776ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
managementexception.cs (14)
593 private ManagementStatus errorCode = 0; 595 internal static void ThrowWithExtendedInfo(ManagementStatus errorCode) 641 internal ManagementException(ManagementStatus errorCode, string msg, ManagementBaseObject errObj) : base (msg) 663 errorCode = (ManagementStatus)((COMException)e).ErrorCode; 665 errorCode = (ManagementStatus)this.HResult; 677errorCode = (ManagementStatus)info.GetValue("errorCode", typeof(ManagementStatus)); 683 public ManagementException():this(ManagementStatus.Failed, "", null) 694 public ManagementException(string message):this(ManagementStatus.Failed, message, null) 710 errorCode = ManagementStatus.Failed; 738 msg = GetMessage ((ManagementStatus)((COMException)e).ErrorCode); 747 private static string GetMessage(ManagementStatus errorCode) 788 /// A <see cref='System.Management.ManagementStatus'/> value representing the error code returned by 791 public ManagementStatus ErrorCode
managementnamedvaluecollection.cs (1)
64 int status = (int)ManagementStatus.NoError;
managementobject.cs (39)
710ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 792int status = (int)ManagementStatus.NoError; 807ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 926int status = (int)ManagementStatus.NoError; 943ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1062int status = (int)ManagementStatus.NoError; 1079ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1191int status = (int)ManagementStatus.NoError; 1209ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1296int status = (int)ManagementStatus.NoError; 1313ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1416int status = (int)ManagementStatus.NoError; 1435ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1488int status = (int)ManagementStatus.NoError; 1527ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1567int status = (int)ManagementStatus.NoError; 1660int status = (int)ManagementStatus.Failed; 1690ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1789int status = (int)ManagementStatus.NoError; 1832ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1918int status = (int)ManagementStatus.NoError; 1948ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1983int status = (int)ManagementStatus.NoError; 2010ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2056int status = (int)ManagementStatus.NoError; 2083ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2320int status = (int)ManagementStatus.NoError; 2342ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2396int status = (int)ManagementStatus.NoError; 2420ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2485int status = (int)ManagementStatus.NoError; 2513ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2547ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2659int status = (int)ManagementStatus.NoError; 2699ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2720int status = (int)ManagementStatus.NoError; 2788ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 2804int status = (int)ManagementStatus.NoError; 2880ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
managementobjectcollection.cs (6)
305int status = (int)ManagementStatus.NoError; 326ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 576ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 585ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 627int status = (int)ManagementStatus.NoError; 645ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
managementobjectsearcher.cs (4)
327int status = (int)ManagementStatus.NoError; 383ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 421int status = (int)ManagementStatus.NoError; 478ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
managementpath.cs (24)
102int status = (int)ManagementStatus.Failed; 116ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 284ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 311int status = (int)ManagementStatus.NoError; 340ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 352int status = (int)ManagementStatus.NoError; 380ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 420throw new ManagementException (ManagementStatus.InvalidOperation, null, null); 442throw new ManagementException (ManagementStatus.InvalidOperation, null, null); 528ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 624ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 654ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 666int status = (int)ManagementStatus.NoError; 676ManagementException.ThrowWithExtendedInfo((ManagementStatus)tag_WBEMSTATUS.WBEM_E_INVALID_NAMESPACE); 771status = (int)ManagementStatus.NoError; // Ignore error. 777ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 803int status = (int)ManagementStatus.NoError; 827ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 903int status = (int)ManagementStatus.NoError; 924int status = (int)ManagementStatus.NoError; 948ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 975ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1004ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 1033ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
managementscope.cs (3)
662ManagementException.ThrowWithExtendedInfo((ManagementStatus)tag_WBEMSTATUS.WBEM_E_INVALID_NAMESPACE); 1138int status = (int)ManagementStatus.NoError; 1165ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
method.cs (3)
117int status = (int)ManagementStatus.Failed; 129ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 220ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
methodset.cs (8)
77int status = (int)ManagementStatus.Failed; 106ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 251int status = (int)ManagementStatus.Failed; 281ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 361int status = (int)ManagementStatus.Failed; 374ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 428int status = (int)ManagementStatus.Failed; 441ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
property.cs (3)
110 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 155 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 228 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
propertyset.cs (7)
88 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 158 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 264 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 382 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 425 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 467 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 505 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
qualifier.cs (13)
68 int status = (int)ManagementStatus.Failed; 82 throw new ManagementException(ManagementStatus.Unexpected, null, null); //is this the best fit error ?? 93 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 186 int status = (int)ManagementStatus.NoError; 195 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 223 int status = (int)ManagementStatus.NoError; 237 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 276 int status = (int)ManagementStatus.NoError; 290 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 312 int status = (int)ManagementStatus.NoError; 326 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 348 int status = (int)ManagementStatus.NoError; 362 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
qualifierset.cs (12)
85 int status = (int)ManagementStatus.NoError; 99 throw new ManagementException(ManagementStatus.Unexpected, null, null); // Is this the best fit error ?? 105 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 135if(qualifierSetType == QualifierType.PropertyQualifier && e.ErrorCode == ManagementStatus.SystemProperty) 145 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 199if(qualifierSetType == QualifierType.PropertyQualifier && e.ErrorCode == ManagementStatus.SystemProperty) 209 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 322 int status = (int)ManagementStatus.NoError; 336 throw new ManagementException(ManagementStatus.Unexpected, null, null); // Is this the best fit error ?? 354ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 442 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); 491 ManagementException.ThrowWithExtendedInfo((ManagementStatus)status);
WmiGenerator.cs (1)
2709if (e.ErrorCode == ManagementStatus.NotFound)