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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Runtime.InteropServices Namespace > ComSecurityParameters Class : UseCustomSecurity Property
Indicates that custom security settings should be used for COM object access.
Syntax
'Declaration
 
<DataMemberAttribute()>
Public Property UseCustomSecurity As Boolean
'Usage
 
Dim instance As ComSecurityParameters
Dim value As Boolean
 
instance.UseCustomSecurity = value
 
value = instance.UseCustomSecurity
[DataMember()]
public bool UseCustomSecurity {get; set;}
[DataMember()]
public:
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:

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