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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security Namespace > NetworkSecurity Class > NetworkSecurity Constructor : NetworkSecurity Constructor(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).

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

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).

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