OPCDA.NET Reference Manual
InitializeSecurity(Int32,Int32,Int32) Method
See Also  Send Feedback
OpcNetBase.Net4 Assembly > OPC.Common Namespace > ComApi Class : InitializeSecurity(Int32,Int32,Int32) Method

authLevel
Authentication level. A value of the RPC_C_AUTHN_LEVEL enumerator.
impLevel
Impersonation level. A value of the RPC_C_IMP_LEVEL enumerator.
eoac
Cloaking selection. A value of the EOAC enumerator.

Glossary Item Box

Initialize DCOM security settings.
This method must be called at the very beginning of an application. It can be executed only once. If it was not yet called then .Net calls it with its default setting when the first DCOm access is made.

Syntax

Visual Basic (Declaration) 
Public Shared Sub InitializeSecurity( _
   ByVal authLevel As Integer, _
   ByVal impLevel As Integer, _
   ByVal eoac As Integer _
) 
C# 
public static void InitializeSecurity( 
   int authLevel,
   int impLevel,
   int eoac
)

Parameters

authLevel
Authentication level. A value of the RPC_C_AUTHN_LEVEL enumerator.
impLevel
Impersonation level. A value of the RPC_C_IMP_LEVEL enumerator.
eoac
Cloaking selection. A value of the EOAC enumerator.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.