Unsubscribe Method

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

Unsubscribes from a device's event source.

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

Syntax

'Declaration
Public Function Unsubscribe ( _
    endpointAddress As Uri, _
    subscription As DpwsEventSubscription _
) As Boolean
public bool Unsubscribe(
    Uri endpointAddress,
    DpwsEventSubscription subscription
)
public:
bool Unsubscribe(
    Uri^ endpointAddress, 
    DpwsEventSubscription^ subscription
)
member Unsubscribe : 
        endpointAddress:Uri * 
        subscription:DpwsEventSubscription -> bool 
public function Unsubscribe(
    endpointAddress : Uri, 
    subscription : DpwsEventSubscription
) : boolean

Parameters

  • endpointAddress
    Type: System. . :: . .Uri
    The endpoint address of the service or subscription manager that is currently maintaining this event subscription on behalf of the device. This address is an HTTP URI (https://ip_address:port/serviceID).
  • subscription
    Type: Dpws.Client.Eventing. . :: . .DpwsEventSubscription
    A subscription response returned from a previous subscribe call. The response contains, among other things, a subscription ID used by the subscription manager to identify a specific event source subscription and the endpoint address of the subscription manager.

Return Value

Type: System. . :: . .Boolean
true if the unsubscribe request was successful; otherwise, false.

.NET Framework Security

See Also

Reference

DpwsEventingClient Class

Dpws.Client.Eventing Namespace