QuickOPC User's Guide and Reference
NetworkCredential2 Constructor(String,SecureString)



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

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

Parameters

userName
password
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