OPC Studio User's Guide and Reference
FromUAMessageSecurityModes Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Engine Namespace > UAEndpointSelectionPolicy Class : FromUAMessageSecurityModes Method
Specifies which message security modes are allowed.
Converts allowed message security modes into an endpoint selection policy.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromUAMessageSecurityModes( _
   ByVal messageSecurityModes As UAMessageSecurityModes _
) As UAEndpointSelectionPolicy
'Usage
 
Dim messageSecurityModes As UAMessageSecurityModes
Dim value As UAEndpointSelectionPolicy
 
value = UAEndpointSelectionPolicy.FromUAMessageSecurityModes(messageSecurityModes)
[NotNull()]
public static UAEndpointSelectionPolicy FromUAMessageSecurityModes( 
   UAMessageSecurityModes messageSecurityModes
)
[NotNull()]
public:
static UAEndpointSelectionPolicy^ FromUAMessageSecurityModes( 
   UAMessageSecurityModes messageSecurityModes
) 

Parameters

messageSecurityModes
Specifies which message security modes are allowed.

Return Value

Returns the endpoint selection policy created from the allowed message security modes.

This method never returns null (Nothing in Visual Basic).

Remarks

Example values for messageSecurityModes:

In languages that support implicit conversions (such as C# or VB.NET), in many cases you do not have call this method explicitly. When indicated, a call to an available equivalent implicit conversion operator will be created by the compiler automatically.

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