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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Net Namespace > NetworkCredential2 Class > NetworkCredential2 Constructor : NetworkCredential2 Constructor(String,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).

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, _
   ByVal domain As String _
)
'Usage
 
Dim userName As String
Dim password As String
Dim domain As String
 
Dim instance As New NetworkCredential2(userName, password, domain)
public NetworkCredential2( 
   string userName,
   string password,
   string domain
)
public:
NetworkCredential2( 
   String^ userName,
   String^ password,
   String^ domain
)

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

domain

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