QuickOPC 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.
Initializes a new instance of the class.
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.
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