OPCDA.NET Reference Manual
Disconnect Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET.Controls Namespace > DAServer Class : Disconnect Method

tag
User defined data associated with the object.
onIsDisconnected
Completion event handler: void xxx( BGException ex, object tag ){}

Glossary Item Box

Available in the OPCDA.NET Professional Edition only.
The OPC server is disconnected. All associated DAGroup object are first removed. This DAServer object retains all configuration data and allws the server to reconnected by calling the Reconnect() method. The call returns immediately after the request is queued. The processing is handled asynchronously. Completion and errors are reported in the specified completion event handler. If no completion handler is specified then error are reported in the Notification event handler.

Syntax

Visual Basic (Declaration) 
Public Sub Disconnect( _
   ByVal tag As Object, _
   ByVal onIsDisconnected As DaRequestCompleted _
) 
C# 
public void Disconnect( 
   object tag,
   DaRequestCompleted onIsDisconnected
)

Parameters

tag
User defined data associated with the object.
onIsDisconnected
Completion event handler: void xxx( BGException ex, object tag ){}

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.