QuickOPC User's Guide and Reference
OverrideDefaultSecurity Property (ComInstantiationParameters)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Runtime.InteropServices Namespace > ComInstantiationParameters Class : OverrideDefaultSecurity Property
Override the default activation security for machine remote activations.
Syntax
'Declaration
 
<DataMemberAttribute()>
<DefaultValueAttribute(True)>
Public Property OverrideDefaultSecurity As Boolean
'Usage
 
Dim instance As ComInstantiationParameters
Dim value As Boolean
 
instance.OverrideDefaultSecurity = value
 
value = instance.OverrideDefaultSecurity
[DataMember()]
[DefaultValue(true)]
public bool OverrideDefaultSecurity {get; set;}
[DataMember()]
[DefaultValue(true)]
public:
property bool OverrideDefaultSecurity {
   bool get();
   void set (    bool value);
}
Remarks

This property is used by following client implementations:

When set, a non-null COAUTHINFO will be specified in the COSERVERINFO.pAuthInfo member passed as the pServerInfo parameter to the CoCreateInstanceEx. See COSERVERINFO structure (objidl.h).

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