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

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

Glossary Item Box

The configured OPC server is connected using the configured credentials. The method is called from the DAGroup.Create() method if the server is not yet connected. Therefore, when the application uses at least one DAGroup object with this server the application doen't need to call this method.
The call returns immediately after the request is queued. The request is processed in background threads. The completion event handler is called to report success or failure. If no completion handler is specified (null (Nothing) argument) then failures arer reported in the Notification event handler.

Syntax

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

Parameters

tag
User defined data associated with the object.
onIsConnected
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.