Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPortableDevicePropVariantCollection::ChangeType method

The ChangeType method converts all items in the collection to the specified VARTYPE.

Syntax


HRESULT ChangeType(
  [inconst VARTYPE vt
);

Parameters

vt [in]

Specifies the VARTYPE to which you want to convert all items in the collection. Example types include VT_UI4 and VT_UI8.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Remarks

If this method fails, the collection may be left in an intermediate state, with some members converted and some not converted.

Requirements

Header

PortableDeviceTypes.h

Library

PortableDeviceGUIDs.lib

See also

IPortableDevicePropVariantCollection Interface

 

 

Community Additions

Show:
© 2017 Microsoft