WsCreateMetadata function (webservices.h)

Creates a metadata object that is used to collect and process metadata documents.

Syntax

HRESULT WsCreateMetadata(
                 const WS_METADATA_PROPERTY *properties,
  [in]           ULONG                      propertyCount,
                 WS_METADATA                **metadata,
  [in, optional] WS_ERROR                   *error
);

Parameters

properties

An array of WS_METADATA_PROPERTY structures containing optional properties for the metadata.

The value of this parameter may be NULL, in which case, the propertyCount parameter must be 0 (zero).

[in] propertyCount

The number of properties in the properties array.

metadata

On success, a pointer that receives the address of the WS_METADATA structure representing the new message.

When you no longer need this structure, you must free it by calling WsFreeMetadata.

[in, optional] error

Pointer to a WS_ERROR structure that receives additional error information if the function fails.

Return value

If the function succeeds, it returns NO_ERROR; otherwise, it returns an HRESULT error code.

Return code Description
E_INVALIDARG
One or more arguments are invalid.
E_OUTOFMEMORY
Ran out of memory.
Other Errors
This function may return other errors not listed above.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header webservices.h
Library WebServices.lib
DLL WebServices.dll