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