38 writes to coce
System.Management (38)
146 references to coce
System.Management (146)
WmiGenerator.cs (146)
1105coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString());
1106coce.Parameters.Add(new CodePrimitiveExpression(GetString("CLASSNOT_FOUND_EXCEPT")));
1107cis1.TrueStatements.Add(new CodeThrowExceptionStatement(coce));
2169coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
2170coce.Parameters.Add(cmie);
2172cmieInit.Parameters.Add(coce);
2232coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
2233coce.Parameters.Add(cmie);
2235cmieInit.Parameters.Add(coce);
2293coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
2294coce.Parameters.Add(cmie);
2295cmieInit.Parameters.Add(coce);
2415coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
2416coce.Parameters.Add(cmie);
2418cmieInit.Parameters.Add(coce);
2452coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
2453coce.Parameters.Add(cmie);
2455cmieInit.Parameters.Add(coce);
2492coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
2493coce.Parameters.Add(cmie);
2495cmieInit.Parameters.Add(coce);
2600coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString());
2601coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()));
2602cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2607coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString());
2608coce.Parameters.Add(new CodePrimitiveExpression(GetString("CLASSNOT_FOUND_EXCEPT")));
2609cis.FalseStatements.Add(new CodeThrowExceptionStatement(coce));
2668coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString());
2669coce.Parameters.Add(new CodeVariableReferenceExpression(strLateBoundObject));
2670cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2678coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString());
2679coce.Parameters.Add(new CodePrimitiveExpression(GetString("CLASSNOT_FOUND_EXCEPT")));
2680cis.FalseStatements.Add(new CodeThrowExceptionStatement(coce));
2752coce.CreateType = new CodeTypeReference(PublicNamesUsed["ArgumentExceptionClass"].ToString());
2753coce.Parameters.Add(new CodePrimitiveExpression(GetString("CLASSNOT_FOUND_EXCEPT")));
2754cis1.TrueStatements.Add(new CodeThrowExceptionStatement(coce));
2760coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString());
2761coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()));
2762coce.Parameters.Add(new CodeVariableReferenceExpression(strPathObject));
2763coce.Parameters.Add(new CodeVariableReferenceExpression(strGetOptions));
2766coce));
2768coce.CreateType = new CodeTypeReference(PublicNamesUsed["SystemPropertiesClass"].ToString());
2769coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()));
2772coce));
2924coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString());
2925coce.Parameters.Add(coce1);
3167coce.CreateType = new CodeTypeReference("System.TimeSpan");
3168coce.Parameters.Add(new CodePrimitiveExpression(0));
3169coce.Parameters.Add(new CodePrimitiveExpression(0));
3170coce.Parameters.Add(new CodePrimitiveExpression(0));
3171coce.Parameters.Add(new CodePrimitiveExpression(0));
3172coce.Parameters.Add(new CodePrimitiveExpression(0));
3174cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),coce));
3274coce.CreateType = new CodeTypeReference("System.TimeSpan");
3275coce.Parameters.Add(new CodePrimitiveExpression(0));
3276coce.Parameters.Add(new CodePrimitiveExpression(0));
3277coce.Parameters.Add(new CodePrimitiveExpression(0));
3278coce.Parameters.Add(new CodePrimitiveExpression(0));
3279coce.Parameters.Add(new CodePrimitiveExpression(0));
3281cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),coce));
3501coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString());
3502cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce));
3518coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
3520cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),pathObj,coce));
3532coce.CreateType = new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString());
3533coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()));
3534coce.Parameters.Add(new CodeVariableReferenceExpression(pathObj));
3535coce.Parameters.Add(new CodePrimitiveExpression(null));
3538strClass,coce));
3548coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString());
3550coce));
3560coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3565coce.Parameters.Add(cmie);
3566cmm.Statements.Add(new CodeMethodReturnStatement(coce));
3682coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString());
3683cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce));
3703coce.CreateType = new CodeTypeReference(PublicNamesUsed["ObjectSearcherClass"].ToString());
3704coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()));
3705coce.Parameters.Add(coce1);
3708strObjectSearcher,coce));
3711coce.CreateType = new CodeTypeReference(PublicNamesUsed["QueryOptionsClass"].ToString());
3715PrivateNamesUsed["EnumParam"].ToString(),coce));
3730coce.CreateType = new CodeTypeReference(PrivateNamesUsed["CollectionClass"].ToString());
3731coce.Parameters.Add(new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(strObjectSearcher),
3733cmm.Statements.Add(new CodeMethodReturnStatement(coce));
4449coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString());
4450coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()),cmie1));
4452cmie.Parameters.Add(coce);
4471coce.CreateType = new CodeTypeReference(PrivateNamesUsed["EnumeratorClass"].ToString());
4472coce.Parameters.Add(new CodeMethodInvokeExpression(new CodeVariableReferenceExpression(strObjectCollection),"GetEnumerator"));
4473cmm.Statements.Add(new CodeMethodReturnStatement(coce));
4563coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString());
4564coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()),
4568cmp.GetStatements.Add(new CodeMethodReturnStatement(coce));
5551coce.CreateType = new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString());
5552coce.Parameters.Add(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()));
5553coce.Parameters.Add(new CodeVariableReferenceExpression(strPathParam));
5554coce.Parameters.Add(new CodeVariableReferenceExpression(strGetOptions));
5559cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeMethodInvokeExpression(cmre,coce)));
6004coce.CreateType = new CodeTypeReference("System.TimeSpan");
6005coce.Parameters.Add(new CodePrimitiveExpression(0));
6006coce.Parameters.Add(new CodePrimitiveExpression(0));
6007coce.Parameters.Add(new CodePrimitiveExpression(0));
6008coce.Parameters.Add(new CodePrimitiveExpression(0));
6009coce.Parameters.Add(new CodePrimitiveExpression(0));
6010return coce;
6024coce.CreateType = new CodeTypeReference(PublicNamesUsed["PathClass"].ToString());
6025coce.Parameters.Add(param);
6026return coce;
6324coce.CreateType = new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString());
6325cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),coce));
6358coce.CreateType = new CodeTypeReference(PrivateNamesUsed["GeneratedClassName"].ToString());
6359coce.Parameters.Add(cmie1);
6361cmm.Statements.Add(new CodeMethodReturnStatement(coce));
6709coce.CreateType = new CodeTypeReference("System.DateTime");
6710coce.Parameters.Add(new CodeVariableReferenceExpression(year));
6711coce.Parameters.Add(new CodeVariableReferenceExpression(month));
6712coce.Parameters.Add(new CodeVariableReferenceExpression(day));
6713coce.Parameters.Add(new CodeVariableReferenceExpression(hour));
6714coce.Parameters.Add(new CodeVariableReferenceExpression(minute));
6715coce.Parameters.Add(new CodeVariableReferenceExpression(second));
6716coce.Parameters.Add(new CodePrimitiveExpression(0));
6718cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),coce));
7053coce.CreateType = new CodeTypeReference("System.TimeSpan");
7054coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(timespan),"Days"));
7055coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(timespan),"Hours"));
7056coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(timespan),"Minutes"));
7057coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(timespan),"Seconds"));
7058coce.Parameters.Add(new CodePrimitiveExpression(0));
7059cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tsTemp,coce));
7347coce.CreateType = new CodeTypeReference("System.DateTime");
7348coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(dateParam),"Year"));
7349coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(dateParam),"Month"));
7350coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(dateParam),"Day"));
7351coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(dateParam),"Hour"));
7352coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(dateParam),"Minute"));
7353coce.Parameters.Add(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(dateParam),"Second"));
7354coce.Parameters.Add(new CodePrimitiveExpression(0));
7355cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),dtTemp,coce));
7741coce.CreateType = new CodeTypeReference("System.TimeSpan");
7742coce.Parameters.Add(new CodeVariableReferenceExpression(days));
7743coce.Parameters.Add(new CodeVariableReferenceExpression(hours));
7744coce.Parameters.Add(new CodeVariableReferenceExpression(minutes));
7745coce.Parameters.Add(new CodeVariableReferenceExpression(seconds));
7746coce.Parameters.Add(new CodePrimitiveExpression(0));
7748cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),timespan,coce));