OPC Studio User's Guide and Reference
DiscoveryUriTemplateStrings Property (UAHostParameters)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Engine Namespace > UAHostParameters Class : DiscoveryUriTemplateStrings Property
The URL templates of discovery endpoints that will be used for discovery tasks.
Syntax
'Declaration
 
Public Property DiscoveryUriTemplateStrings As StringCollection
'Usage
 
Dim instance As UAHostParameters
Dim value As StringCollection
 
instance.DiscoveryUriTemplateStrings = value
 
value = instance.DiscoveryUriTemplateStrings
public StringCollection DiscoveryUriTemplateStrings {get; set;}
public:
property StringCollection^ DiscoveryUriTemplateStrings {
   StringCollection^ get();
   void set (    StringCollection^ value);
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

The individual elements of the property value cannot be null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

A "{host}" expression in the template indicates a discovery host name.

In order to obtain or modify this parameter, in the default state (when OpcLabs.EasyOpc.UA.EasyUAClientCore.Isolated equals to false), access UAClientAdaptableParameters.HostParameters property of static OpcLabs.EasyOpc.UA.EasyUAClientCore.AdaptableParameters. If you have set OpcLabs.EasyOpc.UA.EasyUAClientCore.Isolated to true, you need to access UAClientAdaptableParameters.HostParameters property of OpcLabs.EasyOpc.UA.EasyUAClientCore.IsolatedParameters.

If the scheme specified is known to be not supported, the discovery endpoint URL with this scheme will be silently skipped during discovery. This can happen e.g. in .NET Standard with the "http" scheme, or even with the "https" scheme if the custom certificate validation is on, but not supported by the runtime.

See also in Knowledge Base: Technical note-OPC UA Discovery in QuickOPC.

The getter method of this property is pure, i.e. it does not have observable side effects.

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