OPC Studio User's Guide and Reference
EndpointSelectionPolicy Property (UADiscoveryElement)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UADiscoveryElement Class : EndpointSelectionPolicy Property
The endpoint selection policy associated with the endpoint.
Syntax
'Declaration
 
Public Property EndpointSelectionPolicy As UAEndpointSelectionPolicy
'Usage
 
Dim instance As UADiscoveryElement
Dim value As UAEndpointSelectionPolicy
 
instance.EndpointSelectionPolicy = value
 
value = instance.EndpointSelectionPolicy
public UAEndpointSelectionPolicy EndpointSelectionPolicy {get; set;}
public:
property UAEndpointSelectionPolicy^ EndpointSelectionPolicy {
   UAEndpointSelectionPolicy^ get();
   void set (    UAEndpointSelectionPolicy^ value);
}

Property Value

This value of this property can be null (Nothing in Visual Basic).

The default value of this property is null.

Remarks

Determines how the UA client chooses the endpoint from the endpoints provided by the UA server. It is used in conjunction with non-empty EndpointUriString.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Because the OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy has an implicit conversion from OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes in place of OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy value when setting this property, and the corresponding OPC UA endpoint selection policy will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy.UAEndpointSelectionPolicy Constructor(UAMessageSecurityModes) constructor instead.

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