OPCDA.NET Reference Manual
BrowseServers Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > BGCore Class : BrowseServers Method

machine
Specifies the machine to be browsed. Optionally access credentials may be defined. Specifiy null (Nothing) for the local machine. The network machine names without credentials can be passed as:
C# : new OPC.Common.Host( "xyz" );
VB : New OPC.Common.Host("xyz")
types
OPCServerTypes enumerator values to specify the type of OPC servers to be browsed. Multiple enumerator values can be 'ored' to specify multiple types of OPC servers.
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, string machine, string[] servers, object tag ){}

Glossary Item Box

Available in the OPCDA.NET Professional Edition only.
The specified types of OPC servers installed on the specifiecd machine are returned as a string array argument of the completion handler.

Syntax

Visual Basic (Declaration) 
Public Sub BrowseServers( _
   ByVal machine As Host, _
   ByVal types As OPCServerTypes, _
   ByVal tag As Object, _
   ByVal onCompleted As OnBGBrowseServers _
) 

Parameters

machine
Specifies the machine to be browsed. Optionally access credentials may be defined. Specifiy null (Nothing) for the local machine. The network machine names without credentials can be passed as:
C# : new OPC.Common.Host( "xyz" );
VB : New OPC.Common.Host("xyz")
types
OPCServerTypes enumerator values to specify the type of OPC servers to be browsed. Multiple enumerator values can be 'ored' to specify multiple types of OPC servers.
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, string machine, string[] servers, 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.