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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security Namespace > NetworkSecurity Class > NetworkSecurity Constructor : NetworkSecurity Constructor(Boolean,NetworkCredential2)
Determines whether a client identity specified by networkCredential will be used to impersonate the client.
The identity of the security token.

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

Initializes a new instance of the class, specifying the custom network credential, and a flag determining whether the customer network credential will be used.
Syntax
'Declaration
 
Public Function New( _
   ByVal customNetworkCredential As Boolean, _
   ByVal networkCredential As NetworkCredential2 _
)
'Usage
 
Dim customNetworkCredential As Boolean
Dim networkCredential As NetworkCredential2
 
Dim instance As New NetworkSecurity(customNetworkCredential, networkCredential)

Parameters

customNetworkCredential
Determines whether a client identity specified by networkCredential will be used to impersonate the client.
networkCredential
The identity of the security token.

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