Share via


ExchangeServiceBinding.Subscribe Method

Subscribes client applications such as Outlook Web Access to either push or pull notifications.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<SoapHeaderAttribute("MailboxCulture")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("SerializedSecurityContext")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
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)
[SoapHeaderAttribute("MailboxCulture")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/Subscribe", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("SerializedSecurityContext")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
public SubscribeResponseType Subscribe(
    SubscribeType Subscribe1
)

Parameters

Return Value

Type: Microsoft.SharePoint.Portal.WebControls.SubscribeResponseType

Remarks

The structure of the request messages differ depending on the type of event notification.

See Also

Reference

ExchangeServiceBinding Class

ExchangeServiceBinding Members

Microsoft.SharePoint.Portal.WebControls Namespace