XMLDA.NET Reference
SubscriptionCancel Method
See Also  Example Send Feedback
xmldanet.xmlda Namespace > OpcXmlDA Class : SubscriptionCancel Method

ServerSubHandle
An identifier which had been supplied by the Server in the response to the Subscribe request.
ClientRequestHandle
An optional attribute supplied by the client that will be returned with the response. In larger and more complex systems it helps the client to associate the replies with the proper requests.

Glossary Item Box

XML-DA method to cancel a subscription with either an XML-DA or OPC-DA server.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As OpcXmlDA
Dim ServerSubHandle As String
Dim ClientRequestHandle As String
 
instance.SubscriptionCancel(ServerSubHandle, ClientRequestHandle)
C# 
public void SubscriptionCancel( 
   string ServerSubHandle,
   ref string ClientRequestHandle
)

Parameters

ServerSubHandle
An identifier which had been supplied by the Server in the response to the Subscribe request.
ClientRequestHandle
An optional attribute supplied by the client that will be returned with the response. In larger and more complex systems it helps the client to associate the replies with the proper requests.

Example

Visual BasicCopy Code
Private Sub cancelSubscription(ByVal Srv As XmlServer, ByVal handle As String)
      Dim crh As String = ""
      Srv.SubscriptionCancel(handle, crh)
   End Sub
C#Copy Code
private void cancelSubscription( XmlServer Srv, string handle )
      {
         string crh = "" ;
         Srv.SubscriptionCancel( handle, ref crh );
      }

Requirements

Target Platforms:Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

>

See Also

© 2002-2012 Advosol Inc. All Rights Reserved.