IMDSPStorage3::SetMetadata method (mswmdm.h)

The SetMetadata method provides the metadata associated with a specified content.

Syntax

HRESULT SetMetadata(
  [in] IWMDMMetaData *pMetadata
);

Parameters

[in] pMetadata

Pointer to an IWMDMMetadata interface.

Return value

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

Return code Description
S_OK
The method succeeded, which indicates that SP has successfully processed the metadata.
WMDM_E_NOT_SUPPORTED
The device does not support setting metadata.

Remarks

A service provider calls IWMDMMetaData::QueryByName or IWMDMMetaData::QueryByIndex to retrieve the metadata.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

IMDSPStorage3 Interface

IMDSPStorage3::GetMetadata

IWMDMMetaData Interface

IWMDMMetaData::QueryByIndex

IWMDMMetaData::QueryByName