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