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)
4574
private CodeTypeReference ConvertCIMType(
CimType
cType, bool isArray)
4579
case
CimType
.SInt8:
4584
case
CimType
.UInt8:
4589
case
CimType
.SInt16:
4594
case
CimType
.UInt16:
4606
case
CimType
.SInt32:
4611
case
CimType
.UInt32:
4623
case
CimType
.SInt64:
4628
case
CimType
.UInt64:
4640
case
CimType
.Real32:
4645
case
CimType
.Real64:
4650
case
CimType
.Boolean:
4655
case
CimType
.String:
4660
case
CimType
.DateTime:
4665
case
CimType
.Reference:
4670
case
CimType
.Char16:
4675
case
CimType
.Object:
4695
private static bool isTypeInt(
CimType
cType)
4700
case
CimType
.UInt8:
4701
case
CimType
.UInt16:
4702
case
CimType
.UInt32: // FIXX VB code generator cannot have Long enumerators
4703
case
CimType
.SInt8:
4704
case
CimType
.SInt16:
4705
case
CimType
.SInt32:
4710
case
CimType
.SInt64:
4711
case
CimType
.UInt64:
4712
case
CimType
.Real32:
4713
case
CimType
.Real64:
4714
case
CimType
.Boolean:
4715
case
CimType
.String:
4716
case
CimType
.DateTime:
4717
case
CimType
.Reference:
4718
case
CimType
.Char16:
4719
case
CimType
.Object:
5065
private string GetConversionFunction(
CimType
cimType)
5071
case
CimType
.UInt8:
5075
case
CimType
.SInt8:
5079
case
CimType
.SInt16:
5083
case
CimType
.UInt16:
5094
case
CimType
.SInt32:
5099
case
CimType
.UInt32:
5111
case
CimType
.SInt64:
5116
case
CimType
.UInt64:
5128
case
CimType
.Real32:
5133
case
CimType
.Real64:
5138
case
CimType
.Boolean:
5144
case
CimType
.Char16:
5150
case
CimType
.String:
5176
private static bool IsPropertyValueType(
CimType
cType)
5181
case
CimType
.String:
5182
case
CimType
.Reference:
5183
case
CimType
.Object:
5214
private static string ConvertToNumericValueAndAddToArray(
CimType
cimType, string numericValue, ArrayList arrayToAdd, out string enumType)
5221
case
CimType
.UInt8:
5222
case
CimType
.SInt8:
5223
case
CimType
.SInt16:
5224
case
CimType
.UInt16:
5225
case
CimType
.SInt32:
5226
case
CimType
.UInt32: