OPC Studio User's Guide and Reference
MessageSecurityModes Property (UACommunicationProfile)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UACommunicationProfile Class : MessageSecurityModes Property
Specifies which message security modes are allowed or used.
Syntax
'Declaration
 
Public Property MessageSecurityModes As UAMessageSecurityModes
'Usage
 
Dim instance As UACommunicationProfile
Dim value As UAMessageSecurityModes
 
instance.MessageSecurityModes = value
 
value = instance.MessageSecurityModes
public UAMessageSecurityModes MessageSecurityModes {get; set;}
public:
property UAMessageSecurityModes MessageSecurityModes {
   UAMessageSecurityModes get();
   void set (    UAMessageSecurityModes value);
}

Property Value

Because there is an implicit conversion from OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes to OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy, you can simply use the returned OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes in any place where OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy is expected as input, and the corresponding endpoint selection policy will be constructed automatically from the message security modes. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.UA.Engine.UAEndpointSelectionPolicy.FromUAMessageSecurityModes static method instead.

Exceptions
ExceptionDescription

An invalid enumeration value was used.

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

Example values:

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