Düzenle

Aracılığıyla paylaş


CIMType Qualifier

The CIMType qualifier contains text describing the type of a property.

This text can be the MOF type such as "string" and "sint32" or the CIM type such as "CIM_STRING" and "CIM_SINT32". There is a one-to-one correspondence between the CIMType qualifier and the type of the property used in the pvtType parameter of the IWbemClassObject::Get method.

The two exceptions are:

  • Reference properties, which have the type CIM_REFERENCE, that contains the "REF:classname" value. The classname value describes the class type of the reference property.
  • Embedded object properties, which have the CIM_OBJECT type.

Please note, however, that the CIMType qualifier can and should be used to type a reference property more exactly. For example, if the property always refers to instances of the Win32_LogicalDisk class, its CIMType qualifier should be set to:

"ref:Win32_LogicalDisk"

By default, the CIMType qualifier of a reference property has the type ref.

As with reference properties, the CIMType qualifier should used to type an embedded object property more exactly with the following syntax:

"object:EmbedClass"

Because WMI allows more types than can be expressed by standard constants with the VT_ prefix, the CIMType qualifier can help interpret type values. The CIMType qualifier is added automatically. For more information, see MOF Data Types.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008

See also

Standard WMI Qualifiers

WMI Qualifiers

Adding a Qualifier