OPC Studio User's Guide and Reference
InferredSecurityMode Property (UADataSetSubscriptionDescriptor)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UADataSetSubscriptionDescriptor Class : InferredSecurityMode Property
Security mode inferred from the communication parameters.
Syntax
'Declaration
 
Public ReadOnly Property InferredSecurityMode As UAMessageSecurityModes
'Usage
 
Dim instance As UADataSetSubscriptionDescriptor
Dim value As UAMessageSecurityModes
 
value = instance.InferredSecurityMode
public UAMessageSecurityModes InferredSecurityMode {get;}
public:
property UAMessageSecurityModes InferredSecurityMode {
   UAMessageSecurityModes get();
}

Property Value

The default value of this property is SecurityNone (UAMessageSecurityModes.SecurityNone).

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.

Remarks

A heuristic is used, based on whether the security group Id and some security key services are specified.

The inferred security mode used when UAPubSubCommunicationParameters.SecurityMode is OpcLabs.EasyOpc.UA.Engine.UAMessageSecurityModes.None.

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