OPC Studio User's Guide and Reference
AllowUserInteraction Property (CertificateGenerationParameters)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security Namespace > CertificateGenerationParameters Class : AllowUserInteraction Property
Determines whether the component can interact with the user when creating a certificate.
Syntax
'Declaration
 
<DataMemberAttribute()>
<DefaultValueAttribute(True)>
Public Property AllowUserInteraction As Boolean
'Usage
 
Dim instance As CertificateGenerationParameters
Dim value As Boolean
 
instance.AllowUserInteraction = value
 
value = instance.AllowUserInteraction
[DataMember()]
[DefaultValue(true)]
public bool AllowUserInteraction {get; set;}
[DataMember()]
[DefaultValue(true)]
public:
property bool AllowUserInteraction {
   bool get();
   void set (    bool value);
}

Property Value

If set to false (the default), no dialogs will be displayed.
Remarks

Setting this property to true has effect only when the current process is running in user interactive mode.

Following paragraphs apply only to certificates generated using the OPC Foundation .NET stack.

The actual user interaction controlled by this parameter is performed by a code in OPC UA Configuration Library. As such, it does not have the same visual appearance and behavior as user interface provided by the component itself. Specifically, the dialogs do not have timeouts associated with them. This means that the current activity can be blocked for extended periods of time, or even indefinitely.

The situations in which the user interaction controlled by this parameter happens are quite rare. Following dialogs or message boxes can appear when this parameter is set to true:

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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