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 code | Description |
|---|---|
|
One or more arguments are invalid. |
|
Ran out of memory. |
|
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 |
|
|
Library |
|
|
DLL |
|