IPropertyDescription::GetPropertyType method (propsys.h)

Gets the variant type of the property.

Syntax

HRESULT GetPropertyType(
  [out] VARTYPE *pvartype
);

Parameters

[out] pvartype

Type: VARTYPE*

When this method returns, contains a pointer to a VARTYPE that indicates the property type. If the property is multi-valued, the value pointed to is a VT_VECTOR mask (VT_VECTOR ORed to the VARTYPE. The following are the possible variant types.

VT_NULL

Value can be any type. No coercion is performed. If a type cannot be retrieved, this method retrieves a default value of VT_NULL.

VT_LPWSTR

String

VT_BOOL

Boolean

VT_UI1

Byte

VT_I2

16-bit signed integer

VT_UI2

16-bit unsigned integer

VT_I4

32-bit signed integer

VT_UI4

32-bit unsigned integer

VT_I8

64-bit signed integer

VT_UI8

64-bit unsigned integer

VT_R8

Double

VT_FILETIME

FILETIME structure

VT_CLSID

GUID

VT_BLOB

Unspecified binary data

VT_UNKNOWN

Object that implements IUnknown

VT_STREAM

Object that implements IStream

Return value

Type: HRESULT

This method always returns S_OK.

Remarks

The information retrieved by this method comes from the type attribute of the typeInfo element in the property's .propdesc file.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header propsys.h

See also

IPropertyDescription

Property Description Schema