OPC Studio User's Guide and Reference
Flat Property (UAApplicationDiscoveryQuery)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UAApplicationDiscoveryQuery Class : Flat Property
Determines whether one element will be returned for each discovery URI.
Syntax
'Declaration
 
Public Property Flat As Boolean
'Usage
 
Dim instance As UAApplicationDiscoveryQuery
Dim value As Boolean
 
instance.Flat = value
 
value = instance.Flat
public bool Flat {get; set;}
public:
property bool Flat {
   bool get();
   void set (    bool value);
}

Property Value

The default value of this property is True.

Remarks

When the Flat property 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 property 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