1 write to PublicNamesUsed
System.Management (1)
System\Management\WMIGenerator.cs (1)
802if (IsContainedIn(strTemp, ref PublicNamesUsed) == -1)
192 references to PublicNamesUsed
System.Management (192)
System\Management\WMIGenerator.cs (192)
253GeneratePublicReadOnlyProperty(PublicNamesUsed["NamespaceProperty"].ToString(), "System.String", 293GeneratePublicReadOnlyProperty(PublicNamesUsed["SystemPropertiesProperty"].ToString(), PublicNamesUsed["SystemPropertiesClass"].ToString(), 302GeneratePublicReadOnlyProperty(PublicNamesUsed["LateBoundObjectProperty"].ToString(), PublicNamesUsed["BaseObjClass"].ToString(), 326GeneratePublicProperty(PublicNamesUsed["AutoCommitProperty"].ToString(), "System.Boolean", 343GeneratePrivateMember(PrivateNamesUsed["statMgmtScope"].ToString(), PublicNamesUsed["ScopeClass"].ToString(), 347GeneratePublicProperty(PrivateNamesUsed["staticScope"].ToString(), PublicNamesUsed["ScopeClass"].ToString(), 444GeneratePrivateMember(PrivateNamesUsed["SystemPropertiesObject"].ToString(), PublicNamesUsed["SystemPropertiesClass"].ToString(), null); 447GeneratePrivateMember(PrivateNamesUsed["LateBoundObject"].ToString(), PublicNamesUsed["LateBoundClass"].ToString(), SR.CommentLateBoundObject); 453GeneratePrivateMember(PrivateNamesUsed["EmbeddedObject"].ToString(), PublicNamesUsed["BaseObjClass"].ToString(), SR.CommentEmbeddedObject); 456GeneratePrivateMember(PrivateNamesUsed["CurrentObject"].ToString(), PublicNamesUsed["BaseObjClass"].ToString(), SR.CommentCurrentObject); 606PublicNamesUsed.Add("SystemPropertiesProperty", "SystemProperties"); 607PublicNamesUsed.Add("LateBoundObjectProperty", "LateBoundObject"); 608PublicNamesUsed.Add("NamespaceProperty", "OriginatingNamespace"); 609PublicNamesUsed.Add("ClassNameProperty", "ManagementClassName"); 610PublicNamesUsed.Add("ScopeProperty", "Scope"); 611PublicNamesUsed.Add("PathProperty", "Path"); 612PublicNamesUsed.Add("SystemPropertiesClass", "ManagementSystemProperties"); 613PublicNamesUsed.Add("LateBoundClass", "System.Management.ManagementObject"); 614PublicNamesUsed.Add("PathClass", "System.Management.ManagementPath"); 615PublicNamesUsed.Add("ScopeClass", "System.Management.ManagementScope"); 616PublicNamesUsed.Add("QueryOptionsClass", "System.Management.EnumerationOptions"); 617PublicNamesUsed.Add("GetOptionsClass", "System.Management.ObjectGetOptions"); 618PublicNamesUsed.Add("ArgumentExceptionClass", "System.ArgumentException"); 619PublicNamesUsed.Add("QueryClass", "SelectQuery"); 620PublicNamesUsed.Add("ObjectSearcherClass", "System.Management.ManagementObjectSearcher"); 621PublicNamesUsed.Add("FilterFunction", "GetInstances"); 622PublicNamesUsed.Add("ConstructPathFunction", "ConstructPath"); 623PublicNamesUsed.Add("TypeConverter", "TypeConverter"); 624PublicNamesUsed.Add("AutoCommitProperty", "AutoCommit"); 625PublicNamesUsed.Add("CommitMethod", "CommitObject"); 626PublicNamesUsed.Add("ManagementClass", "System.Management.ManagementClass"); 627PublicNamesUsed.Add("NotSupportedExceptClass", "System.NotSupportedException"); 628PublicNamesUsed.Add("BaseObjClass", "System.Management.ManagementBaseObject"); 629PublicNamesUsed.Add("OptionsProp", "Options"); 630PublicNamesUsed.Add("ClassPathProperty", "ClassPath"); 631PublicNamesUsed.Add("CreateInst", "CreateInstance"); 632PublicNamesUsed.Add("DeleteInst", "Delete"); 635PublicNamesUsed.Add("SystemNameSpace", "System"); 636PublicNamesUsed.Add("ArgumentOutOfRangeException", "System.ArgumentOutOfRangeException"); 637PublicNamesUsed.Add("System", "System"); 638PublicNamesUsed.Add("Other", "Other"); 639PublicNamesUsed.Add("Unknown", "Unknown"); 640PublicNamesUsed.Add("PutOptions", "System.Management.PutOptions"); 641PublicNamesUsed.Add("Type", "System.Type"); 642PublicNamesUsed.Add("Boolean", "System.Boolean"); 643PublicNamesUsed.Add("ValueType", "System.ValueType"); 644PublicNamesUsed.Add("Events1", "Events"); 645PublicNamesUsed.Add("Component1", "Component"); 704foreach (string s in PublicNamesUsed.Values) 888PublicNamesUsed.Add(strClass, strClass); 1013cmp.Name = PublicNamesUsed["PathProperty"].ToString(); 1015cmp.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 1064coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 1086CodeTypeDeclaration SysPropsClass = new CodeTypeDeclaration(PublicNamesUsed["SystemPropertiesClass"].ToString()); 1095cpde.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 1104cad.Name = PublicNamesUsed["TypeConverter"].ToString(); 1158cf.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 1205if ((cmp.Type.ArrayRank == 0 && cmp.Type.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) || 1206cmp.Type.ArrayRank > 0 && cmp.Type.ArrayElementType.BaseType == new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 1311cad.Name = PublicNamesUsed["TypeConverter"].ToString(); 1405GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray, cmp.GetStatements, PublicNamesUsed["PathClass"].ToString(), null, false); 1465AddPropertySet(cie, prop.IsArray, cmp.SetStatements, PublicNamesUsed["PathClass"].ToString(), null); 2037cmm.Name = PublicNamesUsed["ConstructPathFunction"].ToString(); 2114cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2117coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2159if (cctor.Parameters.Count == 1 && cctor.Parameters[0].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 2172cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2180coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2200cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2218if (cctor.Parameters.Count == 2 && cctor.Parameters[1].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 2228new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2233cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2241coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2266cpde.Type = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2297cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2298cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2325cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2326cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2350cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2360cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2363coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2387cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), 2397cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2400coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2422cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 2424cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), 2437cmie.Method.MethodName = PublicNamesUsed["ConstructPathFunction"].ToString(); 2440coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2483cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2484cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2485cctor.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2520cpde.Type = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 2548coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2555coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2590cpde.Type = new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()); 2615coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2625coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2670cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 2671cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathObject)); 2672cmmInit.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 2699coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString()); 2707coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 2715coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString()); 2732PublicNamesUsed["ScopeProperty"].ToString()), 2852cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), 2860cocePath.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 2862cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath)); 2865coce1.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 2871coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 2873cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), strClassObj, coce1)); 2884PublicNamesUsed["ScopeProperty"].ToString()), 2954AddPropertySet(cie, prop.IsArray, cis.TrueStatements, PublicNamesUsed["PathClass"].ToString(), new CodeVariableReferenceExpression(cpde.Name)); 3013cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), strOutParams, cmie)); 3070GenerateCodeForRefAndDateTimeTypes(cie, prop.IsArray, cis.TrueStatements, PublicNamesUsed["PathClass"].ToString(), new CodeVariableReferenceExpression(prop.Name), true); 3192if (retRefType.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 3199GenerateCodeForRefAndDateTimeTypes(cie, isRetArray, cis.TrueStatements, PublicNamesUsed["PathClass"].ToString(), new CodeVariableReferenceExpression("retVar"), true); 3236if (retRefType.ArrayRank == 0 && retRefType.BaseType != new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()).BaseType) 3281cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3286cmie.Method.MethodName = PublicNamesUsed["FilterFunction"].ToString(); 3311cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3317PublicNamesUsed["FilterFunction"].ToString() 3342cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3348PublicNamesUsed["FilterFunction"].ToString() 3373cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3380PublicNamesUsed["FilterFunction"].ToString() 3420cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3422cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3423cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()), 3446coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 3463coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 3465cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), pathObj, coce)); 3477coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 3482cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), 3493coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()); 3531cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3533cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3538PublicNamesUsed["FilterFunction"].ToString() 3562cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3564cmm.Parameters.Add(new CodeParameterDeclarationExpression(PublicNamesUsed["ScopeClass"].ToString(), PrivateNamesUsed["ScopeParam"].ToString())); 3569PublicNamesUsed["FilterFunction"].ToString() 3603cmm.Name = PublicNamesUsed["FilterFunction"].ToString(); 3606cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 3626coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 3641coce1.CreateType = new CodeTypeReference(PublicNamesUsed["QueryClass"].ToString()); 3647coce.CreateType = new CodeTypeReference(PublicNamesUsed["ObjectSearcherClass"].ToString()); 3651cmm.Statements.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ObjectSearcherClass"].ToString(), 3655coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()); 3658new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()), 3745CodeConvertorClass.BaseTypes.Add(PublicNamesUsed["TypeConverter"].ToString()); 3754cf.Type = new CodeTypeReference(PublicNamesUsed["TypeConverter"].ToString()); 3761cf.Type = new CodeTypeReference(PublicNamesUsed["Type"].ToString()); 4134cboe1.Right = new CodeTypeOfExpression(PublicNamesUsed["Boolean"].ToString()); 4142cboe2.Right = new CodeTypeOfExpression(PublicNamesUsed["ValueType"].ToString()); 4384coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()), cmie1)); 4468coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()), 4633strType = PublicNamesUsed["PathClass"].ToString(); 4643strType = PublicNamesUsed["BaseObjClass"].ToString(); 4937cmm.Name = PublicNamesUsed["CommitMethod"].ToString(); 4966cmm.Name = PublicNamesUsed["CommitMethod"].ToString(); 4970cpde.Type = new CodeTypeReference(PublicNamesUsed["PutOptions"].ToString()); 5318cmp.Name = PublicNamesUsed["ClassNameProperty"].ToString(); 5352PublicNamesUsed["ClassPathProperty"].ToString()); 5408cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), PrivateNamesUsed["ScopeParam"].ToString())); 5409cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPathParam)); 5410cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()), strGetOptions)); 5417new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), PublicNamesUsed["ClassNameProperty"].ToString()), 5449coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()); 5480cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), strTempObj)); 5487new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), PublicNamesUsed["ClassNameProperty"].ToString()), 5555new CodePropertyReferenceExpression(new CodeThisReferenceExpression(), PublicNamesUsed["ClassNameProperty"].ToString()), 5603if (string.Equals(strType, PublicNamesUsed["PathClass"].ToString(), StringComparison.OrdinalIgnoreCase)) 5913coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 5946new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), 5947beginningExpression), PublicNamesUsed["PathProperty"].ToString()); 5958cmp.Name = PublicNamesUsed["ScopeProperty"].ToString(); 5960cmp.Type = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 5972if (IsDesignerSerializationVisibilityToBeSet(PublicNamesUsed["ScopeProperty"].ToString())) 6184cmm.Name = PublicNamesUsed["CreateInst"].ToString(); 6198cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 6210coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()); 6226cocePath.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()); 6228cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath)); 6231coce1.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()); 6236cmm.Statements.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ManagementClass"].ToString(), strTemp, coce1)); 6264cmm.Name = PublicNamesUsed["DeleteInst"].ToString(); 6376codeThrowException.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 6563(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 6808new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 7387codeThrowException.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentOutOfRangeException"].ToString()); 7589(PublicNamesUsed["ArgumentOutOfRangeException"].ToString());