138 references to SR
System.Management (138)
System\Management\InteropClasses\WMIInterop.cs (1)
1241
throw new ManagementException(
SR
.WorkerThreadWakeupFailed);
System\Management\ManagementQuery.cs (56)
121
throw new ArgumentException(
SR
.InvalidQueryDuplicatedToken); // Invalid query - duplicate token
130
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
137
throw new ArgumentException(
SR
.InvalidQueryNullToken); // Invalid query - token has no value
152
throw new ArgumentException(
SR
.InvalidQueryDuplicatedToken); // Invalid query - duplicate token
678
throw new ArgumentException(
SR
.InvalidQuery, nameof(queryOrClassName));
750
throw new ArgumentException(
SR
.InvalidQuery, nameof(isSchemaQuery));
1008
throw new ArgumentException(
SR
.InvalidQuery);
1016
throw new ArgumentException(
SR
.InvalidQuery);
1023
throw new ArgumentException(
SR
.InvalidQuery);
1039
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, keyword), nameof(query));
1045
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, "*"), nameof(query));
1053
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, keyword), nameof(query));
1061
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, keyword), nameof(query));
1072
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, keyword), nameof(query));
1078
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
1276
throw new ArgumentException(
SR
.InvalidQuery, nameof(queryOrSourceObject));
1350
throw new ArgumentException(
SR
.InvalidQuery, nameof(isSchemaQuery));
1646
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, TokenAssociators), nameof(query)); // Invalid query
1653
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
1659
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, TokenOf), nameof(query)); // Invalid query
1666
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
1673
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
1683
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, TokenWhere), nameof(query)); // Invalid query
1689
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
1731
throw new ArgumentException(
SR
.InvalidQuery); // Unrecognized token
1736
throw new ArgumentException(
SR
.InvalidQuery);
1903
throw new ArgumentException(
SR
.InvalidQuery, nameof(queryOrSourceObject));
1962
throw new ArgumentException(
SR
.InvalidQuery, nameof(isSchemaQuery));
2163
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, TokenReferences), nameof(query)); // Invalid query
2170
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
2176
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, TokenOf), nameof(query)); // Invalid query
2183
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
2190
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
2200
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, TokenWhere), nameof(query)); // Invalid query
2206
throw new ArgumentException(
SR
.InvalidQuery); // Invalid query
2239
throw new ArgumentException(
SR
.InvalidQuery); // Unrecognized token
2244
throw new ArgumentException(
SR
.InvalidQuery);
2490
throw new ArgumentException(
SR
.InvalidQuery, nameof(queryOrEventClassName));
3034
throw new ArgumentException(
SR
.InvalidQuery);
3038
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, "*"), nameof(query));
3044
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, keyword), nameof(query));
3114
throw new ArgumentException(
SR
.Format(
SR
.InvalidQueryTokenExpected, keyword), nameof(query));
System\Management\ManagementScope.cs (5)
303
LoadPlatformNotSupportedDelegates(
SR
.PlatformNotSupported_FullFrameworkRequired);
316
throw new Win32Exception(Marshal.GetLastPInvokeError(),
SR
.Format(
SR
.LoadLibraryFailed, wminet_utilsPath));
376
LoadPlatformNotSupportedDelegates(
SR
.Format(
SR
.PlatformNotSupported_FrameworkUpdatedRequired, wminet_utilsPath));
System\Management\WMIGenerator.cs (76)
171
throw new ArgumentOutOfRangeException(
SR
.NullFilePathException);
176
throw new ArgumentOutOfRangeException(
SR
.EmptyFilePathException);
200
throw new ArgumentOutOfRangeException(
SR
.NamespaceNotInitializedException);
205
throw new ArgumentOutOfRangeException(
SR
.ClassNameNotInitializedException);
254
OriginalNamespace, false, true,
SR
.CommentOriginNamespace);
280
new CodePrimitiveExpression(OriginalNamespace), true,
SR
.CommentCreatedWmiNamespace);
286
new CodePrimitiveExpression(OriginalClassName), true,
SR
.CommentCreatedClass);
295
SR
.CommentSystemObject);
304
SR
.CommentLateBoundProperty);
328
SR
.CommentAutoCommitProperty, false);
344
new CodePrimitiveExpression(null), true,
SR
.CommentStaticManagementScope);
348
new CodeVariableReferenceExpression(PrivateNamesUsed["statMgmtScope"].ToString()), true,
SR
.CommentStaticScopeProperty, true);
447
GeneratePrivateMember(PrivateNamesUsed["LateBoundObject"].ToString(), PublicNamesUsed["LateBoundClass"].ToString(),
SR
.CommentLateBoundObject);
450
GeneratePrivateMember(PrivateNamesUsed["AutoCommitProperty"].ToString(), "System.Boolean", new CodePrimitiveExpression(true), false,
SR
.CommentPrivateAutoCommit);
453
GeneratePrivateMember(PrivateNamesUsed["EmbeddedObject"].ToString(), PublicNamesUsed["BaseObjClass"].ToString(),
SR
.CommentEmbeddedObject);
456
GeneratePrivateMember(PrivateNamesUsed["CurrentObject"].ToString(), PublicNamesUsed["BaseObjClass"].ToString(),
SR
.CommentCurrentObject);
459
GeneratePrivateMember(PrivateNamesUsed["IsEmbedded"].ToString(), "System.Boolean", new CodePrimitiveExpression(false), false,
SR
.CommentFlagForEmbedded);
474
cc.Comments.Add(new CodeCommentStatement(
SR
.CommentClassBegin +
1065
coce.Parameters.Add(new CodePrimitiveExpression(
SR
.ClassNameNotFoundException));
1076
cmp.Comments.Add(new CodeCommentStatement(
SR
.CommentManagementPath));
1161
SysPropsClass.Comments.Add(new CodeCommentStatement(
SR
.CommentSystemPropertiesClass));
2131
cctor.Comments.Add(new CodeCommentStatement(
SR
.CommentConstructors));
2556
coce.Parameters.Add(new CodePrimitiveExpression(
SR
.ClassNameNotFoundException));
2626
coce.Parameters.Add(new CodePrimitiveExpression(
SR
.ClassNameNotFoundException));
2700
coce.Parameters.Add(new CodePrimitiveExpression(
SR
.ClassNameNotFoundException));
3294
cmm.Comments.Add(new CodeCommentStatement(
SR
.CommentGetInstances));
4230
CodeConvertorClass.Comments.Add(new CodeCommentStatement(
SR
.CommentPrototypeConverter));
4429
ccc.Comments.Add(new CodeCommentStatement(
SR
.CommentEnumeratorImplementation));
4929
throw new ArgumentOutOfRangeException(
SR
.Format(
SR
.UnableToCreateCodeGeneratorException, strProvider));
4938
throw new ArgumentOutOfRangeException(
SR
.Format(
SR
.UnableToCreateCodeGeneratorException, strProvider));
5338
cc.Comments.Add(new CodeCommentStatement(
SR
.CommentShouldSerialize));
5339
cc.Comments.Add(new CodeCommentStatement(
SR
.CommentIsPropNull));
5340
cc.Comments.Add(new CodeCommentStatement(
SR
.CommentResetProperty));
5341
cc.Comments.Add(new CodeCommentStatement(
SR
.CommentAttributeProperty));
6043
cmp.Comments.Add(new CodeCommentStatement(
SR
.CommentManagementScope));
6104
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment));
6105
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment2));
6106
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment3));
6107
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment4));
6108
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment5));
6109
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment6));
6112
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment7));
6113
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment1));
6114
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment2));
6115
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment3));
6116
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment4));
6117
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment5));
6118
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment6));
6119
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment7));
6120
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment8));
6121
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment9));
6122
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedVisualBasicComment10));
6125
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedComment8));
6126
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment1));
6127
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment2));
6128
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment3));
6129
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment4));
6130
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment5));
6131
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment6));
6132
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment7));
6133
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment8));
6134
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment9));
6135
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment10));
6136
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment11));
6137
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment12));
6138
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment13));
6139
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment14));
6140
cc.Comments.Add(new CodeCommentStatement(
SR
.EmbeddedCSharpComment15));
6184
cc.Comments.Add(new CodeCommentStatement(
SR
.CommentTimeSpanConversionFunction));
6194
cc.Comments.Add(new CodeCommentStatement(
SR
.CommentDateConversionFunction));
6363
cmmdt.Comments.Add(new CodeCommentStatement(
SR
.CommentToDateTime));
6807
cmmts.Comments.Add(new CodeCommentStatement(
SR
.CommentToDmtfTimeInterval));
7069
cmmdt.Comments.Add(new CodeCommentStatement(
SR
.CommentToDmtfDateTime));
7391
cmmts.Comments.Add(new CodeCommentStatement(
SR
.CommentToTimeSpan));