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 | Description |
---|---|
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: VB sample: |
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 ) |
Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x