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("SerializedSecurityContext")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction:=SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
Public Function Subscribe ( _
Subscribe1 As SubscribeType _
) As SubscribeResponseType
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare)]
[SoapHeaderAttribute("SerializedSecurityContext")]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out)]
[SoapHeaderAttribute("MailboxCulture")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("RequestServerVersionValue")]
public SubscribeResponseType Subscribe (
SubscribeType Subscribe1
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use=SoapBindingUse::Literal, ParameterStyle=SoapParameterStyle::Bare)]
[SoapHeaderAttribute(L"SerializedSecurityContext")]
[SoapHeaderAttribute(L"ServerVersionInfoValue", Direction=SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"MailboxCulture")]
[SoapHeaderAttribute(L"ExchangeImpersonation")]
[SoapHeaderAttribute(L"RequestServerVersionValue")]
public:
SubscribeResponseType^ Subscribe (
SubscribeType^ Subscribe1
)
/** @attribute SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare) */
/** @attribute SoapHeaderAttribute("SerializedSecurityContext") */
/** @attribute SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out) */
/** @attribute SoapHeaderAttribute("MailboxCulture") */
/** @attribute SoapHeaderAttribute("ExchangeImpersonation") */
/** @attribute SoapHeaderAttribute("RequestServerVersionValue") */
public SubscribeResponseType Subscribe (
SubscribeType Subscribe1
)
SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare)
SoapHeaderAttribute("SerializedSecurityContext")
SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out)
SoapHeaderAttribute("MailboxCulture")
SoapHeaderAttribute("ExchangeImpersonation")
SoapHeaderAttribute("RequestServerVersionValue")
public function Subscribe (
Subscribe1 : SubscribeType
) : SubscribeResponseType
Parameters
- Subscribe1
An instance of the SubscribeType class that represents the folders and events to monitor.
Return Value
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)