161 references to CimType
System.Management (161)
System\Management\Property.cs (82)
140
(
CimType
)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY),
148
(
CimType
)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY),
174
/// <para>A <see cref='System.Management.
CimType
'/> value
177
public
CimType
Type
182
return (
CimType
)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY);
275
internal static object MapWmiValueToValue(object wmiValue,
CimType
type, bool isArray)
288
case
CimType
.UInt16:
295
case
CimType
.UInt32:
302
case
CimType
.UInt64:
309
case
CimType
.SInt8:
316
case
CimType
.SInt64:
323
case
CimType
.Char16:
330
case
CimType
.Object:
346
CimType
.SInt8 => (sbyte)((short)wmiValue),
347
CimType
.UInt16 => (ushort)((int)wmiValue),
348
CimType
.UInt32 => (uint)((int)wmiValue),
349
CimType
.UInt64 => Convert.ToUInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(ulong))),
350
CimType
.SInt64 => Convert.ToInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(long))),
351
CimType
.Char16 => (char)((short)wmiValue),
352
CimType
.Object => new ManagementBaseObject(new IWbemClassObjectFreeThreaded(Marshal.GetIUnknownForObject(wmiValue))),
367
internal static object MapValueToWmiValue(object val,
CimType
type, bool isArray)
380
case
CimType
.SInt8:
386
case
CimType
.UInt8:
397
case
CimType
.SInt16:
408
case
CimType
.UInt16:
414
case
CimType
.SInt32:
425
case
CimType
.UInt32:
431
case
CimType
.SInt64:
437
case
CimType
.UInt64:
443
case
CimType
.Real32:
454
case
CimType
.Real64:
465
case
CimType
.Char16:
471
case
CimType
.String:
472
case
CimType
.DateTime:
473
case
CimType
.Reference:
484
case
CimType
.Boolean:
495
case
CimType
.Object:
513
case
CimType
.SInt8:
517
case
CimType
.UInt8:
521
case
CimType
.SInt16:
525
case
CimType
.UInt16:
529
case
CimType
.SInt32:
533
case
CimType
.UInt32:
537
case
CimType
.SInt64:
541
case
CimType
.UInt64:
545
case
CimType
.Real32:
549
case
CimType
.Real64:
553
case
CimType
.Char16:
557
case
CimType
.String:
558
case
CimType
.DateTime:
559
case
CimType
.Reference:
563
case
CimType
.Boolean:
567
case
CimType
.Object:
588
internal static object MapValueToWmiValue(object val, out bool isArray, out
CimType
type)
611
type =
CimType
.UInt8;
621
type =
CimType
.SInt8;
629
type =
CimType
.Boolean;
636
type =
CimType
.UInt16;
644
type =
CimType
.SInt16;
649
type =
CimType
.SInt32;
656
type =
CimType
.UInt32;
666
type =
CimType
.UInt64;
676
type =
CimType
.SInt64;
684
type =
CimType
.Real32;
689
type =
CimType
.Real64;
696
type =
CimType
.Char16;
708
type =
CimType
.String;
718
type =
CimType
.Object;
733
type =
CimType
.UInt16;
738
type =
CimType
.UInt32;
746
type =
CimType
.UInt64;
751
type =
CimType
.SInt8;
756
type =
CimType
.UInt8;
761
type =
CimType
.SInt16;
766
type =
CimType
.SInt32;
771
type =
CimType
.SInt64;
776
type =
CimType
.Boolean;
781
type =
CimType
.Real32;
786
type =
CimType
.Real64;
791
type =
CimType
.Char16;
796
type =
CimType
.String;
804
type =
CimType
.Object;
System\Management\PropertySet.cs (3)
419
CimType
cimType = 0;
450
public void Add(string propertyName, object propertyValue,
CimType
propertyType)
492
public void Add(string propertyName,
CimType
propertyType, bool isArray)
System\Management\WMIGenerator.cs (76)
1194
if (prop.Type ==
CimType
.DateTime)
1317
if (prop.Type !=
CimType
.DateTime)
1400
if (prop.Type ==
CimType
.Reference)
1408
if (prop.Type ==
CimType
.DateTime)
1460
if (prop.Type ==
CimType
.Reference)
1468
if (prop.Type ==
CimType
.DateTime)
2783
CimType
cimRetType =
CimType
.SInt8; // Initialized to remove warnings
2922
if (prop.Type ==
CimType
.DateTime)
2950
if (prop.Type ==
CimType
.Reference)
2957
if (prop.Type ==
CimType
.DateTime)
3035
if (prop.Type ==
CimType
.DateTime)
3053
if (prop.Type ==
CimType
.DateTime)
3066
if (prop.Type ==
CimType
.Reference)
3073
if (prop.Type ==
CimType
.DateTime)
3088
if (prop.IsArray || prop.Type ==
CimType
.Object)
3108
if (prop.Type ==
CimType
.DateTime && !prop.IsArray)
4540
private CodeTypeReference ConvertCIMType(
CimType
cType, bool isArray)
4545
case
CimType
.SInt8:
4550
case
CimType
.UInt8:
4555
case
CimType
.SInt16:
4560
case
CimType
.UInt16:
4572
case
CimType
.SInt32:
4577
case
CimType
.UInt32:
4589
case
CimType
.SInt64:
4594
case
CimType
.UInt64:
4606
case
CimType
.Real32:
4611
case
CimType
.Real64:
4616
case
CimType
.Boolean:
4621
case
CimType
.String:
4626
case
CimType
.DateTime:
4631
case
CimType
.Reference:
4636
case
CimType
.Char16:
4641
case
CimType
.Object:
4661
private static bool isTypeInt(
CimType
cType)
4666
case
CimType
.UInt8:
4667
case
CimType
.UInt16:
4668
case
CimType
.UInt32: // FIXX VB code generator cannot have Long enumerators
4669
case
CimType
.SInt8:
4670
case
CimType
.SInt16:
4671
case
CimType
.SInt32:
4676
case
CimType
.SInt64:
4677
case
CimType
.UInt64:
4678
case
CimType
.Real32:
4679
case
CimType
.Real64:
4680
case
CimType
.Boolean:
4681
case
CimType
.String:
4682
case
CimType
.DateTime:
4683
case
CimType
.Reference:
4684
case
CimType
.Char16:
4685
case
CimType
.Object:
5031
private string GetConversionFunction(
CimType
cimType)
5037
case
CimType
.UInt8:
5041
case
CimType
.SInt8:
5045
case
CimType
.SInt16:
5049
case
CimType
.UInt16:
5060
case
CimType
.SInt32:
5065
case
CimType
.UInt32:
5077
case
CimType
.SInt64:
5082
case
CimType
.UInt64:
5094
case
CimType
.Real32:
5099
case
CimType
.Real64:
5104
case
CimType
.Boolean:
5110
case
CimType
.Char16:
5116
case
CimType
.String:
5142
private static bool IsPropertyValueType(
CimType
cType)
5147
case
CimType
.String:
5148
case
CimType
.Reference:
5149
case
CimType
.Object:
5180
private static string ConvertToNumericValueAndAddToArray(
CimType
cimType, string numericValue, ArrayList arrayToAdd, out string enumType)
5187
case
CimType
.UInt8:
5188
case
CimType
.SInt8:
5189
case
CimType
.SInt16:
5190
case
CimType
.UInt16:
5191
case
CimType
.SInt32:
5192
case
CimType
.UInt32: