OPCDA.NET Reference Manual
Connect(String,Object,OnBGSrvConnected) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > BGServer Class > Connect Method : Connect(String,Object,OnBGSrvConnected) Method

progID
The server ProgID name such as e.g. Advosol.SIMDAServer.1"
The proper names can be found by browsing the installed servers with a test client.
tag
This object is passed to the competion handler and allows the user to pass any information that may be needed in the completion handler. null (nothing) can be specified if the application does not require to pass any information.
onCompleted
Competion notification handler. void xxx( BGException ex, object tag ){}

Glossary Item Box

Available in the OPCDA.NET Professional Edition only.
The specified local OPC DA server is connected. The server mus tbe connected before any other request can be handled.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Connect( _
   ByVal progID As String, _
   ByVal tag As Object, _
   ByVal onCompleted As OnBGSrvConnected _
) 
C# 
public void Connect( 
   string progID,
   object tag,
   OnBGSrvConnected onCompleted
)

Parameters

progID
The server ProgID name such as e.g. Advosol.SIMDAServer.1"
The proper names can be found by browsing the installed servers with a test client.
tag
This object is passed to the competion handler and allows the user to pass any information that may be needed in the completion handler. null (nothing) can be specified if the application does not require to pass any information.
onCompleted
Competion notification 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.