WsSetFaultErrorProperty function (webservices.h)

Set a Fault property of a WS_ERROR object.

Syntax

HRESULT WsSetFaultErrorProperty(
  [in] WS_ERROR                   *error,
  [in] WS_FAULT_ERROR_PROPERTY_ID id,
       const void                 *value,
  [in] ULONG                      valueSize
);

Parameters

[in] error

A pointer to the WS_ERROR object in which to set the property. The pointer must reference a valid WS_ERROR object.

[in] id

Identifier of the property to set.

value

The property value to set. The pointer must have an alignment compatible with the type of the property.

[in] valueSize

The size in bytes of the property value.

Return value

This function can return one of these values.

Return code Description
E_INVALIDARG
The property id was not supported for this object.

The specified size was not appropriate for the property.

E_OUTOFMEMORY
There was not enough space to set the property value.
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