OPCHDA.NET Reference Manual
GetServerList(String[]) Method
See Also  Send Feedback
OpcHDAWrapperUA.Net4 Assembly > OPCHDA Namespace > OpcHDAServerBrowser Class > GetServerList Method : GetServerList(String[]) Method

Servers
OUT: ProgId of the enumerated OPC HDA V1.x servers

Glossary Item Box

Get the names of the registerd OPC HDA 1.x servers. The ProgId of all servers is returned as a string array. This array can e.g. be directly displayed in a Windos control:

VC# sample:
string[] aProgIds;
OpcServerBrowser SrvList = new OpcServerBrowser(); SrvList.GetServerList( out aProgId ); comboBoxServers.Items.AddRange( aProgId );

VB sample:
Dim aProgIds As String()
Dim SrvList As New OpcServerBrowser()
SrvList.GetServerList(aProgIds)
comboBoxServers.Items.AddRange(aProgIds)

Syntax

Visual Basic (Declaration) 
Public Overloads Sub GetServerList( _
   ByRef Servers As String() _
) 
C# 
public void GetServerList( 
   out string[] Servers
)

Parameters

Servers
OUT: ProgId of the enumerated OPC HDA V1.x servers

Example

VC# sample:
string[] aProgIds;
OpcServerBrowser SrvList = new OpcServerBrowser(); SrvList.GetServerList( out aProgId ); comboBoxServers.Items.AddRange( aProgId );

VB sample:
Dim aProgIds As String()
Dim SrvList As New OpcServerBrowser()
SrvList.GetServerList(aProgIds)
comboBoxServers.Items.AddRange(aProgIds)

Requirements

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

See Also

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