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("", Use := SoapBindingUse.Literal,  _
	ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("MailboxCulture")> _
Public Function Unsubscribe ( _
	Unsubscribe1 As UnsubscribeType _
) As UnsubscribeResponseType
Dim instance As ExchangeServiceBinding
Dim Unsubscribe1 As UnsubscribeType
Dim returnValue As UnsubscribeResponseType

returnValue = instance.Unsubscribe(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.