32 writes to cmm
System.Management (32)
248 references to cmm
System.Management (248)
WmiGenerator.cs (248)
1424cmm.Name = "ShouldSerialize" + PublicProperties[prop.Name].ToString();
1425cmm.Attributes = MemberAttributes.Private | MemberAttributes.Final;
1426cmm.ReturnType = new CodeTypeReference("System.Boolean");
1436cmm.Statements.Add(cis2);
1437cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1438cc.Members.Add (cmm);
2087cmm.Name = PublicNamesUsed["ConstructPathFunction"].ToString();
2088cmm.Attributes = MemberAttributes.Private | MemberAttributes.Static | MemberAttributes.Final;
2089cmm.ReturnType = new CodeTypeReference("System.String");
2094cmm.Parameters.Add(new CodeParameterDeclarationExpression(strType,
2102cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(strPath)));
2108cmm.Statements.Add(new CodeVariableDeclarationStatement("System.String",strPathObject,new CodePrimitiveExpression(strPath)));
2137cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strPathObject),cmietoAdd));
2139cmm.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strPathObject)));
2141cc.Members.Add(cmm);
2862cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final;
2863cmm.Name = PublicMethods[meth.Name].ToString();
2871cmm.Attributes |= MemberAttributes.Static;
2889cmm.Statements.Add(new CodeVariableDeclarationStatement("System.Boolean","IsMethodStatic",new CodePrimitiveExpression(bStatic)));
2995cmm.Parameters.Add(cpde);
3085cmm.ReturnType = ConvertCIMType(prop.Type,prop.IsArray);
3091CodeTypeReference dateType = cmm.ReturnType;
3094cmm.ReturnType = dateType;
3096retRefType = cmm.ReturnType;
3105cmm.Parameters.Add(cpde);
3248cmm.Statements.Add(cRetVal);
3249cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),new CodePrimitiveExpression(null)));
3260cmm.Statements.Add(cRetVal);
3261cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),
3272cmm.Statements.Add(cRetVal);
3281cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),coce));
3316cmm.Statements.Add(cis);
3317cc.Members.Add(cmm);
3334cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3335cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3336cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3345cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3347cc.Members.Add(cmm);
3348cmm.Comments.Add(new CodeCommentStatement(GetString("COMMENT_GETINSTANCES")));
3364cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3365cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3366cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3367cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.String",strCondition));
3377cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3379cc.Members.Add(cmm);
3395cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3396cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3397cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3398cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.String []",strSelectedProperties));
3408cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3410cc.Members.Add(cmm);
3427cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3428cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3429cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3430cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.String",strCondition));
3431cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.String []",strSelectedProperties));
3441cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3443cc.Members.Add(cmm);
3474cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3475cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3476cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3477cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
3478cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString()),
3514cmm.Statements.Add(cis);
3520cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),pathObj,coce));
3522cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3526cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3537cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),
3556cmm.Statements.Add(cis);
3566cmm.Statements.Add(new CodeMethodReturnStatement(coce));
3568cc.Members.Add(cmm);
3585cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3586cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3587cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3588cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
3589cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.String"),strCondition));
3599cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3601cc.Members.Add(cmm);
3617cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3618cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3619cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3620cmm.Parameters.Add(new CodeParameterDeclarationExpression(PublicNamesUsed["ScopeClass"].ToString(),PrivateNamesUsed["ScopeParam"].ToString()));
3621cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.String []",strSelectedProperties));
3631cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3633cc.Members.Add(cmm);
3658cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
3659cmm.Name = PublicNamesUsed["FilterFunction"].ToString();
3660cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3662cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
3663cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.String",strCondition));
3664cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.String []",strSelectedProperties));
3695cmm.Statements.Add(cis);
3707cmm.Statements.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ObjectSearcherClass"].ToString(),
3713cmm.Statements.Add(new CodeVariableDeclarationStatement(
3717cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3724cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3733cmm.Statements.Add(new CodeMethodReturnStatement(coce));
3735cc.Members.Add(cmm);
3855cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
3856cmm.Name = "CanConvertFrom";
3857cmm.ReturnType = new CodeTypeReference("System.Boolean");
3859cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
3860cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.Type",srcType));
3866cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3867CodeConvertorClass.Members.Add(cmm);
3879cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
3880cmm.Name = "CanConvertTo";
3881cmm.ReturnType = new CodeTypeReference("System.Boolean");
3883cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
3884cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.Type",TypeDstObject));
3890cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3891CodeConvertorClass.Members.Add(cmm);
3903cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
3904cmm.Name = "ConvertFrom";
3905cmm.ReturnType = new CodeTypeReference("System.Object");
3907cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
3908cmm.Parameters.Add(new CodeParameterDeclarationExpression(CultureInfoClass,CultureInfoVar));
3909cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"),ValueVar));
3916cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3917CodeConvertorClass.Members.Add(cmm);
3929cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
3930cmm.ReturnType = new CodeTypeReference("System.Object");
3932cmm.Name = "CreateInstance";
3933cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
3934cmm.Parameters.Add(new CodeParameterDeclarationExpression(IDictionary,DictVar));
3940cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3941CodeConvertorClass.Members.Add(cmm);
3952cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
3953cmm.Name = "GetCreateInstanceSupported";
3954cmm.ReturnType = new CodeTypeReference("System.Boolean");
3956cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
3961cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3962CodeConvertorClass.Members.Add(cmm);
3972cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
3973cmm.Name = "GetProperties";
3974cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
3975cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"),ValueVar));
3978cmm.Parameters.Add(new CodeParameterDeclarationExpression(crt,AttributeVar));
3979cmm.ReturnType = new CodeTypeReference(propColl);
3986cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
3987CodeConvertorClass.Members.Add(cmm);
3997cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
3998cmm.Name = "GetPropertiesSupported";
3999cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
4000cmm.ReturnType = new CodeTypeReference("System.Boolean");
4005cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4006CodeConvertorClass.Members.Add(cmm);
4016cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
4017cmm.Name = "GetStandardValues";
4018cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
4019cmm.ReturnType = new CodeTypeReference("System.ComponentModel.TypeConverter.StandardValuesCollection");
4024cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4025CodeConvertorClass.Members.Add(cmm);
4035cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
4036cmm.Name = "GetStandardValuesExclusive";
4037cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
4038cmm.ReturnType = new CodeTypeReference("System.Boolean");
4043cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4044CodeConvertorClass.Members.Add(cmm);
4054cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
4055cmm.Name = "GetStandardValuesSupported";
4056cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
4057cmm.ReturnType = new CodeTypeReference("System.Boolean");
4062cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4063CodeConvertorClass.Members.Add(cmm);
4102cmm.Attributes = MemberAttributes.Public | MemberAttributes.Override | MemberAttributes.Overloaded;
4103cmm.Name = "ConvertTo";
4105cmm.Parameters.Add(new CodeParameterDeclarationExpression(TypeDescriptorContextClass,contextObject));
4106cmm.Parameters.Add(new CodeParameterDeclarationExpression(CultureInfoClass,CultureInfoVar));
4107cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference("System.Object"),ValueVar));
4108cmm.Parameters.Add(new CodeParameterDeclarationExpression("System.Type",TypeDstObject));
4109cmm.ReturnType = new CodeTypeReference("System.Object");
4185cmm.Statements.Add(cis);
4250cmm.Statements.Add(cis);
4280cmm.Statements.Add(cis);
4283cmm.Statements.Add(returnStatement);
4285CodeConvertorClass.Members.Add(cmm);
4397cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4398cmm.Name = "CopyTo";
4399cmm.ImplementationTypes.Add("System.Collections.ICollection");
4404cmm.Parameters.Add(cpde);
4409cmm.Parameters.Add(cpde);
4418cmm.Statements.Add(new CodeExpressionStatement(cmie));
4420cmm.Statements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr));
4456cmm.Statements.Add(cfls);
4457ccc.Members.Add(cmm);
4465cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4466cmm.Name = "GetEnumerator";
4467cmm.ImplementationTypes.Add("System.Collections.IEnumerable");
4469cmm.ReturnType = new CodeTypeReference("System.Collections.IEnumerator");
4473cmm.Statements.Add(new CodeMethodReturnStatement(coce));
4474ccc.Members.Add(cmm);
4590cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4591cmm.Name = "MoveNext";
4592cmm.ImplementationTypes.Add("System.Collections.IEnumerator");
4594cmm.ReturnType = new CodeTypeReference("System.Boolean");
4600cmm.Statements.Add(new CodeMethodReturnStatement(cmie));
4601ecc.Members.Add(cmm);
4609cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Override;
4610cmm.Name = "Reset";
4611cmm.ImplementationTypes.Add("System.Collections.IEnumerator");
4617cmm.Statements.Add(new CodeExpressionStatement (cmie));
4618ecc.Members.Add(cmm);
5050cmm.Name = PublicNamesUsed["CommitMethod"].ToString();
5051cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final;
5058cmm.CustomAttributes = new CodeAttributeDeclarationCollection();
5059cmm.CustomAttributes.Add(cad);
5073cmm.Statements.Add(cis);
5074cc.Members.Add(cmm);
5079cmm.Name = PublicNamesUsed["CommitMethod"].ToString();
5080cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final;
5085cmm.Parameters.Add(cpde);
5092cmm.CustomAttributes = new CodeAttributeDeclarationCollection();
5093cmm.CustomAttributes.Add(cad);
5108cmm.Statements.Add(cis);
5109cc.Members.Add(cmm);
5506cmm.Name = PrivateNamesUsed["ClassNameCheckFunc"].ToString();
5507cmm.Attributes = MemberAttributes.Private | MemberAttributes.Final ;
5508cmm.ReturnType = new CodeTypeReference("System.Boolean");
5510cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),PrivateNamesUsed["ScopeParam"].ToString()));
5511cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPathParam));
5512cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["GetOptionsClass"].ToString()),strGetOptions));
5560cmm.Statements.Add(cis);
5564cc.Members.Add(cmm);
5580cmm.Name = PrivateNamesUsed["ClassNameCheckFunc"].ToString();
5581cmm.Attributes = MemberAttributes.Private | MemberAttributes.Final ;
5582cmm.ReturnType = new CodeTypeReference("System.Boolean");
5584cmm.Parameters.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strTempObj));
5683cmm.Statements.Add(cis);
5684cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
5685cc.Members.Add(cmm);
6297cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final | MemberAttributes.Static ;
6298cmm.Name = PublicNamesUsed["CreateInst"].ToString();
6299cmm.ReturnType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString());
6306cmm.CustomAttributes = new CodeAttributeDeclarationCollection();
6307cmm.CustomAttributes.Add(cad);
6312cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),
6337cmm.Statements.Add(cis1);
6342cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
6350cmm.Statements.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ManagementClass"].ToString(),strTemp,coce1));
6361cmm.Statements.Add(new CodeMethodReturnStatement(coce));
6363cc.Members.Add(cmm);
6377cmm.Attributes = MemberAttributes.Public | MemberAttributes.Final ;
6378cmm.Name = PublicNamesUsed["DeleteInst"].ToString();
6385cmm.CustomAttributes = new CodeAttributeDeclarationCollection();
6386cmm.CustomAttributes.Add(cad);
6393cmm.Statements.Add(cmie1);
6395cc.Members.Add(cmm);