IWSDServiceProxy::UnsubscribeToOperation method (wsdclient.h)

Cancels a subscription to a notification or solicit/response event.

Syntax

HRESULT UnsubscribeToOperation(
  [in] const WSD_OPERATION *pOperation
);

Parameters

[in] pOperation

Reference to a WSD_OPERATION structure that specifies the operation subscribed to.

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.
E_INVALIDARG
The proxy is not subscribed to the notification specified by pOperation.
E_POINTER
pOperation is NULL.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdclient.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDServiceProxy