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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Net Namespace > NetworkCredential2 Class > NetworkCredential2 Constructor : NetworkCredential2 Constructor(String,String)

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

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

Initializes a new instance of the NetworkCredential2 class with name and password set as specified.

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 NetworkCredential2(userName, password)
public NetworkCredential2( 
   string userName,
   string password
)
public:
NetworkCredential2( 
   String^ userName,
   String^ password
)

Parameters

userName

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

password

The value of this parameter can 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