IPropertyDescription::GetDisplayType method

Gets the current data type used to display the property.

Syntax


HRESULT GetDisplayType(
  [out] PROPDESC_DISPLAYTYPE *pdt
);

Parameters

pdt [out]

Type: PROPDESC_DISPLAYTYPE*

Contains a pointer to a value that indicates the display type. One of the following values.

PDDT_STRING (0x00000000) (0)

The value is displayed as a string.

PDDT_NUMBER (0x00000001) (1)

The value is displayed as an integer.

PDDT_BOOLEAN (0x00000002) (2)

The value is displayed as a Boolean value.

PDDT_DATETIME (0x00000003) (3)

The value is displayed as date and time.

PDDT_ENUMERATED (0x00000004) (4)

The value is displayed as an enumerated type-list. Use IPropertyDescription::GetEnumTypeList to handle this type.

Return value

Type: HRESULT

Always returns S_OK.

Remarks

The value retrieved by this method is originally set through the displayType attribute of the displayInfo element in the property's .propdesc file.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Propsys.h

IDL

Propsys.idl

See also

IPropertyDescription
Property Description Schema

 

 

Show: