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