OPC Studio User's Guide and Reference
UseCustomSecurity Property (_ComSecurityParameters)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Runtime.InteropServices.ComTypes Namespace > _ComSecurityParameters Interface : UseCustomSecurity Property
Indicates that custom security settings should be used for COM object access.
Syntax
'Declaration
 
Property UseCustomSecurity As Boolean
'Usage
 
Dim instance As _ComSecurityParameters
Dim value As Boolean
 
instance.UseCustomSecurity = value
 
value = instance.UseCustomSecurity
bool UseCustomSecurity {get; set;}
property bool UseCustomSecurity {
   bool get();
   void set (    bool value);
}

Property Value

The default value of this property is True.

Remarks

When true, the COM security settings of the application are controlled by the application itself, and are not influenced by the settings specified in DCOM Configuration. Unless specified otherwise, access is allowed to everyone, authentication level is set to Connect and the impersonation level is set to Impersonate.

This property is used by following client implementations:

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