OPCDA.NET Reference Manual
Logon Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcServer Class : Logon Method

userID
The user’s logon name; for logons in NT domains this string contains also the domain name, e.g., “OPC\Ben”
password
The user’s password.

Glossary Item Box

Changes the identity of the client application’s user. Future access to any security objects will be authorized with the new user’s credentials until a subsequent call to Logoff() or Logon(). For OPC Servers which also implement IOPCSecurityNT, access checking with NT credentials will be disabled until Logoff() is called.

Syntax

Visual Basic (Declaration) 
Public Function Logon( _
   ByVal userID As String, _
   ByVal password As String _
) As Integer
C# 
public int Logon( 
   string userID,
   string password
)

Parameters

userID
The user’s logon name; for logons in NT domains this string contains also the domain name, e.g., “OPC\Ben”
password
The user’s password.

Return Value

HRESULTS error/succes code as defined by OPC

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.