This documentation is archived and is not being maintained.

ExchangeServiceBinding.Unsubscribe Method

The Unsubscribe method sends the request to and returns the response from an Unsubscribe operation.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/exchange/services/2006/messages/Unsubscribe", Use = SoapBindingUse.Literal, 
	ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("RequestServerVersionValue")]
[SoapHeaderAttribute("MailboxCulture")]
public UnsubscribeResponseType Unsubscribe(
	UnsubscribeType Unsubscribe1
)

Parameters

Unsubscribe1
Type: ExchangeWebServices.UnsubscribeType
An instance of the UnsubscribeType class that represents the subscription to cancel.

Return Value

Type: ExchangeWebServices.UnsubscribeResponseType
The Unsubscribe method returns an UnsubscribeResponseType object that contains the result of the Unsubscribe operation.
Show: