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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAEndpointDescriptor Class : EndpointSelectionPolicy Property
Determines how the UA client chooses the endpoint from the endpoints provided by the UA server.
Syntax
'Declaration
 
<NullableAttribute()>
Public Property EndpointSelectionPolicy As UAEndpointSelectionPolicy
'Usage
 
Dim instance As UAEndpointDescriptor
Dim value As UAEndpointSelectionPolicy
 
instance.EndpointSelectionPolicy = value
 
value = instance.EndpointSelectionPolicy
[Nullable()]
public UAEndpointSelectionPolicy EndpointSelectionPolicy {get; set;}
[Nullable()]
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

When null, a policy from the session parameters is used.

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