IPortableDevicePropVariantCollection interface (portabledevicetypes.h)
Holds a collection of PROPVARIANT values of the same VARTYPE. The VARTYPE of the first item that is added to the collection determines the VARTYPE of the collection. An attempt to add an item of a different VARTYPE may fail if the PROPVARIANT value cannot be changed to the collection's current VARTYPE. To change the VARTYPE of the collection manually, call ChangeType.
This interface can be retrieved from a method or, if a new object is required, call CoCreate with CLSID_PortableDevicePropVariantCollection.
Inheritance
The IPortableDevicePropVariantCollection interface inherits from the IUnknown interface. IPortableDevicePropVariantCollection also has these types of members:
Methods
The IPortableDevicePropVariantCollection interface has these methods.
IPortableDevicePropVariantCollection::Add Adds an item to the collection. |
IPortableDevicePropVariantCollection::ChangeType Converts all items in the collection to the specified VARTYPE. |
IPortableDevicePropVariantCollection::Clear Removes or frees all items in the collection. The collection is considered empty after calling this method. |
IPortableDevicePropVariantCollection::GetAt Retrieves an item from the collection by a zero-based index. |
IPortableDevicePropVariantCollection::GetCount Retrieves the number of items in this collection. |
IPortableDevicePropVariantCollection::GetType Retrieves the data type of the items in the collection. |
IPortableDevicePropVariantCollection::RemoveAt Learn how the RemoveAt method removes the element stored at the location specified by the given index. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | portabledevicetypes.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for