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