DpwsEventingClient.Subscribe Method
Use to subscribe to a device's hosted service event sources.
Namespace: Dpws.Client.Eventing
Assembly: MFDpwsClient (in mfdpwsclient.dll)
Syntax
public DpwsSubscribeResponse Subscribe (
DpwsSubscribeRequestsubscription
)
Parameters
- subscription
A DpwsSubscribeRequest object containing the address of the service hosting the desired event, the address where the event is sent, an optional address where subscription end messages are sent, a subscription expiration (in duration format,) and an optional user-defined identifier.
Return Value
A DpwsSubscribeResponse object containing the subscription manager's address, the time when the subscription expires (duration), and optional reference parameters and properties. The sub mananger may assign a different duration value than that specified in the request.
Exceptions
| Exception type | Condition |
|---|---|
| ArgumentNullException | Required subscription parameters are not set. |
Version Information
Available in .NET Micro Framework version 2.5
See Also
Reference
DpwsEventingClient Class
DpwsEventingClient Members
Dpws.Client.Eventing Namespace