ExchangeServiceBinding.Subscribe Method
The Subscribe method sends the request to and returns the response from a Subscribe operation.
Namespace: ExchangeWebServices
Assembly: EWS (in EWS.dll)
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use := SoapBindingUse.Literal, _
ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("MailboxCulture")> _
Public Function Subscribe ( _
Subscribe1 As SubscribeType _
) As SubscribeResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim Subscribe1 As SubscribeType
Dim returnValue As SubscribeResponseType
returnValue = instance.Subscribe(Subscribe1)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use = SoapBindingUse.Literal,
ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("RequestServerVersionValue")]
[SoapHeaderAttribute("MailboxCulture")]
public SubscribeResponseType Subscribe(
SubscribeType Subscribe1
)
Parameters
- Subscribe1
Type: ExchangeWebServices.SubscribeType
An instance of the SubscribeType class that represents the folders and events to monitor.
Return Value
Type: ExchangeWebServices.SubscribeResponseType
The Subscribe method returns a SubscribeResponseType object that contains the status of the Subscribe operation, the subscription identifier, and the latest watermark for the subscription.