QuickOPC User's Guide and Reference
UALocalApplicationDiscoveryQuery Constructor(String,Boolean)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UALocalApplicationDiscoveryQuery Class > UALocalApplicationDiscoveryQuery Constructor : UALocalApplicationDiscoveryQuery Constructor(String,Boolean)
The name of the machine that runs the discovery server that will be used for performing the discovery.
Determines whether one element will be returned for each discovery URI.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal discoveryHost As String, _
   ByVal flat As Boolean _
)
'Usage
 
Dim discoveryHost As String
Dim flat As Boolean
 
Dim instance As New UALocalApplicationDiscoveryQuery(discoveryHost, flat)
public UALocalApplicationDiscoveryQuery( 
   string discoveryHost,
   bool flat
)
public:
UALocalApplicationDiscoveryQuery( 
   String^ discoveryHost,
   bool flat
)

Parameters

discoveryHost
The name of the machine that runs the discovery server that will be used for performing the discovery.
flat
Determines whether one element will be returned for each discovery URI.
Remarks

When the flat parameter is false, the discovery query returns one UADiscoveryElement for each application found, and its DiscoveryUriStrings property contains one or more application discovery URLs.

When the flat parameter is true, the discovery query returns one UADiscoveryElement for each discovery URL of each application found. In this case, the DiscoveryUriStrings property of each returned application element contains precisely one string, and you can therefore use the DiscoveryUriString property instead to obtain the discovery URL.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also