202 references to ManagementStatus
System.Management (202)
Instrumentation\Attributes.cs (1)
70
ManagementException.ThrowWithExtendedInfo(
ManagementStatus
.InvalidNamespace);
Instrumentation\EventSource.cs (2)
290
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)hresult);
326
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)hresult);
Instrumentation\SchemaMapping.cs (2)
74
if(e.ErrorCode !=
ManagementStatus
.NotFound)
500
if(e.ErrorCode !=
ManagementStatus
.NotFound)
Instrumentation\SchemaRegistration.cs (9)
312
if(e.ErrorCode !=
ManagementStatus
.NotFound)
761
if(e.ErrorCode ==
ManagementStatus
.NotFound)
784
if(
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)
829
if(e.ErrorCode !=
ManagementStatus
.NotFound)
InteropClasses\WMIInterop.cs (1)
159
if(hr == (int)
ManagementStatus
.InvalidObject)
managementbaseobject.cs (16)
337
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
438
int status = (int)
ManagementStatus
.NoError;
447
if (status == (int)
ManagementStatus
.NoError)
451
if (status == (int)
ManagementStatus
.NoError)
458
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
615
int status = (int)
ManagementStatus
.NoError;
630
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
657
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
703
if (exc.ErrorCode ==
ManagementStatus
.NotFound)
788
int status = (int)
ManagementStatus
.NoError;
798
if ((int)
ManagementStatus
.Different == status)
800
else if ((int)
ManagementStatus
.NoError == status)
803
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
822
int status = (int)
ManagementStatus
.NoError;
829
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
851
ManagementException.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)
401
int status = (int)
ManagementStatus
.NoError;
440
ManagementException.ThrowWithExtendedInfo(
ManagementStatus
.Timedout);
484
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
540
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
564
FireStopped (new StoppedEventArgs (options.Context, (int)
ManagementStatus
.OperationCanceled));
776
ManagementException.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;
677
errorCode = (
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)
710
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
792
int status = (int)
ManagementStatus
.NoError;
807
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
926
int status = (int)
ManagementStatus
.NoError;
943
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1062
int status = (int)
ManagementStatus
.NoError;
1079
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1191
int status = (int)
ManagementStatus
.NoError;
1209
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1296
int status = (int)
ManagementStatus
.NoError;
1313
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1416
int status = (int)
ManagementStatus
.NoError;
1435
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1488
int status = (int)
ManagementStatus
.NoError;
1527
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1567
int status = (int)
ManagementStatus
.NoError;
1660
int status = (int)
ManagementStatus
.Failed;
1690
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1789
int status = (int)
ManagementStatus
.NoError;
1832
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1918
int status = (int)
ManagementStatus
.NoError;
1948
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1983
int status = (int)
ManagementStatus
.NoError;
2010
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2056
int status = (int)
ManagementStatus
.NoError;
2083
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2320
int status = (int)
ManagementStatus
.NoError;
2342
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2396
int status = (int)
ManagementStatus
.NoError;
2420
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2485
int status = (int)
ManagementStatus
.NoError;
2513
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2547
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2659
int status = (int)
ManagementStatus
.NoError;
2699
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2720
int status = (int)
ManagementStatus
.NoError;
2788
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
2804
int status = (int)
ManagementStatus
.NoError;
2880
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
managementobjectcollection.cs (6)
305
int status = (int)
ManagementStatus
.NoError;
326
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
576
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
585
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
627
int status = (int)
ManagementStatus
.NoError;
645
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
managementobjectsearcher.cs (4)
327
int status = (int)
ManagementStatus
.NoError;
383
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
421
int status = (int)
ManagementStatus
.NoError;
478
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
managementpath.cs (24)
102
int status = (int)
ManagementStatus
.Failed;
116
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
284
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
311
int status = (int)
ManagementStatus
.NoError;
340
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
352
int status = (int)
ManagementStatus
.NoError;
380
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
420
throw new ManagementException (
ManagementStatus
.InvalidOperation, null, null);
442
throw new ManagementException (
ManagementStatus
.InvalidOperation, null, null);
528
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
624
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
654
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
666
int status = (int)
ManagementStatus
.NoError;
676
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)tag_WBEMSTATUS.WBEM_E_INVALID_NAMESPACE);
771
status = (int)
ManagementStatus
.NoError; // Ignore error.
777
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
803
int status = (int)
ManagementStatus
.NoError;
827
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
903
int status = (int)
ManagementStatus
.NoError;
924
int status = (int)
ManagementStatus
.NoError;
948
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
975
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1004
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
1033
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
managementscope.cs (3)
662
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)tag_WBEMSTATUS.WBEM_E_INVALID_NAMESPACE);
1138
int status = (int)
ManagementStatus
.NoError;
1165
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
method.cs (3)
117
int status = (int)
ManagementStatus
.Failed;
129
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
220
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
methodset.cs (8)
77
int status = (int)
ManagementStatus
.Failed;
106
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
251
int status = (int)
ManagementStatus
.Failed;
281
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
361
int status = (int)
ManagementStatus
.Failed;
374
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
428
int status = (int)
ManagementStatus
.Failed;
441
ManagementException.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);
135
if(qualifierSetType == QualifierType.PropertyQualifier && e.ErrorCode ==
ManagementStatus
.SystemProperty)
145
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
199
if(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 ??
354
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
442
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
491
ManagementException.ThrowWithExtendedInfo((
ManagementStatus
)status);
WmiGenerator.cs (1)
2709
if (e.ErrorCode ==
ManagementStatus
.NotFound)