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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.ComTypes Namespace > _UACommunicationProfile Interface : MessageSecurityModes Property
Specifies which message security modes are allowed or used.
Syntax
'Declaration
 
Property MessageSecurityModes As UAMessageSecurityModes
'Usage
 
Dim instance As _UACommunicationProfile
Dim value As UAMessageSecurityModes
 
instance.MessageSecurityModes = value
 
value = instance.MessageSecurityModes
UAMessageSecurityModes MessageSecurityModes {get; set;}
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:

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