OPCHDA.NET Reference Manual
GetServerList Method
See Also  Send Feedback
OpcHDAWrapperUA.Net4 Assembly > OPCHDA Namespace > OpcHDAServerBrowser Class : GetServerList Method

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)

Overload List

OverloadDescription
GetServerList(String[])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)

 
GetServerList(String[],Guid[]) Returns the ProgID and CLSID of all registerd OPC HDA 1.x servers.  
GetServerList(Guid[],String[]) Get the names of the OPC servers registered with one of the categories listed in the CategoriesList parameter. The ProgId of all servers is returned as a string array. This array can e.g. be directly displayed in a Windos control: VC#: comboBoxServers.Items.AddRange( ProgIdArr ); VB: comboBoxServers.Items.AddRange( ProgIdArr )  
GetServerList(Guid[],String[],Guid[]) Get the names of the OPC servers registered with one of the categories listed in the CategoriesList parameter. The ProgId of all servers is returned as a string array. This array can e.g. be directly displayed in a Windos control: VC#: comboBoxServers.Items.AddRange( ProgIdArr ); VB: comboBoxServers.Items.AddRange( ProgIdArr )  

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.