DpwsSubscribeRequest Constructor
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates an instance of the DpwsSubscribeRequest class.
Namespace: Dpws.Client.Eventing
Assembly: MFDpwsClient (in MFDpwsClient.dll)
Syntax
'Declaration
Public Sub New ( _
subscriptionType As DpwsServiceType, _
endpointAddress As String, _
notifyToAddress As String, _
expires As String, _
identifier As WsXmlNode _
)
public DpwsSubscribeRequest(
DpwsServiceType subscriptionType,
string endpointAddress,
string notifyToAddress,
string expires,
WsXmlNode identifier
)
public:
DpwsSubscribeRequest(
DpwsServiceType^ subscriptionType,
String^ endpointAddress,
String^ notifyToAddress,
String^ expires,
WsXmlNode^ identifier
)
new :
subscriptionType:DpwsServiceType *
endpointAddress:string *
notifyToAddress:string *
expires:string *
identifier:WsXmlNode -> DpwsSubscribeRequest
public function DpwsSubscribeRequest(
subscriptionType : DpwsServiceType,
endpointAddress : String,
notifyToAddress : String,
expires : String,
identifier : WsXmlNode
)
Parameters
- subscriptionType
Type: Dpws.Client. . :: . .DpwsServiceType
A DpwsServiceType object containing definition of the service being subscribed to.
- endpointAddress
Type: System. . :: . .String
A string containing an event service endpoint address.
- notifyToAddress
Type: System. . :: . .String
A string containing the NotifyTo endpoint address.
- expires
Type: System. . :: . .String
A string containing the subscription expiration time in duration format. See Remarks for more information on duration format. If nullNothingnullptrunita null reference (Nothing in Visual Basic) the event does not expire.
- identifier
Type: Ws.Services.Xml. . :: . .WsXmlNode
An object containing a unique identifier. This value will be included in an event messages SOAP header as a reference parameter. This value is not processed by a service. It is intended to provide a unique identified a client can use for any purpose.
Remarks
This class is initialized with the service endpoint address, NotifyTo callback, endpoint address, and event duration.
The following table shows examples of the format of the expires parameter.
Duration |
Format |
---|---|
1 year 6 months |
"P1Y6M" |
3 hours 25 minutes 42 seconds |
"PT3H25M42S" |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.