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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Engine.ComTypes Namespace > _UAHostParameters Interface : DiscoveryUriTemplateStrings Property
The URL templates of discovery endpoints that will be used for discovery tasks.
Syntax
'Declaration
 
<NotNullAttribute()>
Property DiscoveryUriTemplateStrings As StringCollection
'Usage
 
Dim instance As _UAHostParameters
Dim value As StringCollection
 
instance.DiscoveryUriTemplateStrings = value
 
value = instance.DiscoveryUriTemplateStrings
[NotNull()]
StringCollection DiscoveryUriTemplateStrings {get; set;}
[NotNull()]
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 OpcLabs.EasyOpc.UA.Engine.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 OpcLabs.EasyOpc.UA.Engine.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.

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

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