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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security Namespace > NetworkSecurity Class > NetworkSecurity Constructor : NetworkSecurity Constructor(String,String,String)
The user name associated with this credential.
The password for the user name.
The machine name that verifies the credentials. Usually this is the host machine.
Initializes a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal userName As String, _
   ByVal password As String, _
   ByVal domain As String _
)
'Usage
 
Dim userName As String
Dim password As String
Dim domain As String
 
Dim instance As New NetworkSecurity(userName, password, domain)
public NetworkSecurity( 
   string userName,
   string password,
   string domain
)
public:
NetworkSecurity( 
   String^ userName,
   String^ password,
   String^ domain
)

Parameters

userName
The user name associated with this credential.
password
The password for the user name.
domain
The machine name that verifies the credentials. Usually this is the host machine.
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