OPC Studio User's Guide and Reference
NetworkSecurity Constructor(String,String,String)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security Namespace > NetworkSecurity Class > NetworkSecurity Constructor : NetworkSecurity Constructor(String,String,String)
The username associated with this credential.

The value of this parameter cannot be null (Nothing in Visual Basic).

The password for the username.

The value of this parameter cannot be null (Nothing in Visual Basic).

The machine name that verifies the credentials. Usually this is the host machine.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the class, specifying username, password, and domain (machine name).
Syntax
'Declaration
 
Public Function New( _
   ByVal userName As String, _
   ByVal password As String, _
   ByVal domain As String _
)
'Usage
 
Dim userName As String
Dim password As String
Dim domain As String
 
Dim instance As New NetworkSecurity(userName, password, domain)
public NetworkSecurity( 
   string userName,
   string password,
   string domain
)
public:
NetworkSecurity( 
   String^ userName,
   String^ password,
   String^ domain
)

Parameters

userName
The username associated with this credential.

The value of this parameter cannot be null (Nothing in Visual Basic).

password
The password for the username.

The value of this parameter cannot be null (Nothing in Visual Basic).

domain
The machine name that verifies the credentials. Usually this is the host machine.

The value of this parameter cannot be null (Nothing in Visual Basic).

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