Subscribe Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Subscribes to a device's hosted service event sources.

Namespace:  Dpws.Client.Eventing
Assembly:  MFDpwsClient (in MFDpwsClient.dll)

Syntax

'Declaration
Public Function Subscribe ( _
    subscriptionRequest As DpwsSubscribeRequest _
) As DpwsEventSubscription
public DpwsEventSubscription Subscribe(
    DpwsSubscribeRequest subscriptionRequest
)
public:
DpwsEventSubscription^ Subscribe(
    DpwsSubscribeRequest^ subscriptionRequest
)
member Subscribe : 
        subscriptionRequest:DpwsSubscribeRequest -> DpwsEventSubscription 
public function Subscribe(
    subscriptionRequest : DpwsSubscribeRequest
) : DpwsEventSubscription

Parameters

  • subscriptionRequest
    Type: Dpws.Client.Eventing. . :: . .DpwsSubscribeRequest
    An object that contains the address of the service that is hosting the desired event, the address where the event is sent, an optional address where subscription end messages are sent, a subscription expiration (duration), and an optional user-defined identifier.

Return Value

Type: Dpws.Client.Eventing. . :: . .DpwsEventSubscription
An object that contains the subscription manager's address, the time when the subscription expires (duration), and optional reference parameters and properties. The subscription manager may assign a different duration value than that specified in the request.

Exceptions

Exception Condition
ArgumentNullException

Required subscription parameters are not set.

.NET Framework Security

See Also

Reference

DpwsEventingClient Class

Dpws.Client.Eventing Namespace