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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Net Namespace > NetworkCredential2 Class > NetworkCredential2 Constructor : NetworkCredential2 Constructor(NetworkCredential2)
Network credential to be copied from.

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

Initializes a new copy of the NetworkCredential2 object.
Syntax
'Declaration
 
Public Function New( _
   ByVal networkCredential2 As NetworkCredential2 _
)
'Usage
 
Dim networkCredential2 As NetworkCredential2
 
Dim instance As New NetworkCredential2(networkCredential2)
public NetworkCredential2( 
   NetworkCredential2 networkCredential2
)
public:
NetworkCredential2( 
   NetworkCredential2^ networkCredential2
)

Parameters

networkCredential2
Network credential to be copied from.

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