Compartilhar via


IWMDMMetaData Interface

banner art

The IWMDMMetaData interface manages the getting and setting of metadata properties (such as artist, album, genre, and so on) of digital media content on the device. This interface abstracts a collection-like object which holds metadata properties as name-value pairs.

The application can call IWMDMStorage3::CreateEmptyMetadataObject to get an object that implements this interface. The application fills this up and passes it to Windows Media Device Manager, which in turn sends it to the service provider either as IMDSPStorage3::SetMetadata or IMDSPStorage3::GetMetadata.

In the case of SetMetadata, the service provider uses IWMDMMetaData::QueryByName or IWMDMMetaData::QueryByIndex to extract the metadata sent by the application; In the case of GetMetadata, the service provider uses IWMDMMetaData::AddItem to send metadata to the application.

In addition to the methods inherited from IUnknown, the IWMDMMetaData interface exposes the following methods.

Method Description
AddItem Adds a metadata property.
GetItemCount Retrieves the total number of items.
QueryByIndex Retrieves the value of a property by specifying its index.
QueryByName Retrieves the value of a property by specifying its name.

See Also