IVssExpressWriter::LoadMetadata method (vswriter.h)

Causes VSS to load the writer's metadata from a string instead of the express writer metadata store.

Syntax

HRESULT LoadMetadata(
  [in] LPCWSTR metadata,
  [in] DWORD   reserved
);

Parameters

[in] metadata

A null-terminated wide character string that contains the writer's metadata.

[in] reserved

This parameter is reserved for system use.

Return value

The following are the valid return codes for this method.

Value Meaning
S_OK
0x00000000L
The operation was successful.
VSS_E_INVALID_XML_DOCUMENT
0x80042311L
The XML document is not valid. Check the event log for details. For more information, see Event and Error Handling Under VSS.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header vswriter.h

See also

IVssExpressWriter