Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WsCreateMetadata function

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

Syntax


HRESULT WINAPI  WsCreateMetadata(
           const WS_METADATA_PROPERTY* properties,
  _In_     ULONG                       propertyCount,
           WS_METADATA**               metadata,
  _In_opt_ 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).

propertyCount [in]

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.

error [in, optional]

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 codeDescription
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

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

Show:
© 2017 Microsoft