OPC Studio User's Guide and Reference
AssureSecurityInitialization() Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Runtime.InteropServices Namespace > ComManagement Class > AssureSecurityInitialization Method : AssureSecurityInitialization() Method
Assures that COM security is initialized.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Function AssureSecurityInitialization() As ValueResult(Of Boolean)
'Usage
 
Dim instance As ComManagement
Dim value As ValueResult(Of Boolean)
 
value = instance.AssureSecurityInitialization()
[NotNull()]
public ValueResult<bool> AssureSecurityInitialization()
[NotNull()]
public:
ValueResult<bool>^ AssureSecurityInitialization(); 

Return Value

Returns a OpcLabs.BaseLib.OperationModel.Generic.ValueResult<T>, indicating success or failure of the operation. In case of success, the value is true if the operation has initialized the COM security; the value is false if COM security has been initialized earlier, with the same parameters.
Remarks

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