QuickOPC User's Guide and Reference
DiscoveryUriString Property (_UAApplicationManifest)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Administration.ComTypes Namespace > _UAApplicationManifest Interface : DiscoveryUriString Property
The URL string that can be used to reach the application, using discovery.
Syntax
'Declaration
 
<NotNullAttribute()>
Property DiscoveryUriString As String
'Usage
 
Dim instance As _UAApplicationManifest
Dim value As String
 
instance.DiscoveryUriString = value
 
value = instance.DiscoveryUriString
[NotNull()]
string DiscoveryUriString {get; set;}
[NotNull()]
property String^ DiscoveryUriString {
   String^ get();
   void set (    String^ value);
}
Remarks

This value can be used as OpcLabs.BaseLib.ResourceDescriptor.UrlString.

A generic string is used instead of System.Uri, because in some cases, the value may not represent a real URI.

This value is derived from OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriStrings. When OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriStrings contains precisely one element, OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriString is equal to value of this element. Otherwise, OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriString is an empty string. Assigning a non-empty string to OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriString clears the OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriStrings and adds this string as a single element to the collection. Assigning an empty string to OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriString has no effect.

Certain types of discovery queries, such as OpcLabs.EasyOpc.UA.Discovery.UALocalApplicationDiscoveryQuery or OpcLabs.EasyOpc.UA.Discovery.UALocalApplicationDiscoveryQuery with the OpcLabs.EasyOpc.UA.Discovery.UAApplicationDiscoveryQuery.Flat parameter set to true always return application elements which have precisely one discovery URI, and in such case it is guaranteed that OpcLabs.EasyOpc.UA.Discovery.IUAReadOnlyApplicationElement.DiscoveryUriString contains a non-empty string.

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