WsResetError function (webservices.h)

Releases the content of the error object parameter but does not release the resource allocated to the error object parameter.

Note  The "reset" effect of this function returns the error object to the state set at instantiation. The object is not released consequently is available for reuse.

 

Syntax

HRESULT WsResetError(
  [in] WS_ERROR *error
);

Parameters

[in] error

This parameter is a pointer to the WS_ERROR object to reset.

Return value

This function can return one of these values.

Return code Description
E_INVALIDARG
One or more arguments are invalid.

Remarks

String data added to the error object using the WsAddErrorString function are released.

Properties that have been set using the WsSetErrorProperty function are released.

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