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



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

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

Initializes an instance of the NetworkCredential2 class from the System.Net.NetworkCredential object.
Syntax
'Declaration
 
Public Function New( _
   ByVal networkCredential As NetworkCredential _
)
'Usage
 
Dim networkCredential As NetworkCredential
 
Dim instance As New NetworkCredential2(networkCredential)
public NetworkCredential2( 
   NetworkCredential networkCredential
)
public:
NetworkCredential2( 
   NetworkCredential^ networkCredential
)

Parameters

networkCredential
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