OPC Studio User's Guide and Reference
GetCredentialByHost Method (_NetworkCredential2)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Net.ComTypes Namespace > _NetworkCredential2 Interface : GetCredentialByHost Method
Syntax
'Declaration
 
<CanBeNullAttribute()>
Function GetCredentialByHost( _
   ByVal host As String, _
   ByVal port As Integer, _
   ByVal authenticationType As String _
) As NetworkCredential2
'Usage
 
Dim instance As _NetworkCredential2
Dim host As String
Dim port As Integer
Dim authenticationType As String
Dim value As NetworkCredential2
 
value = instance.GetCredentialByHost(host, port, authenticationType)
[CanBeNull()]
NetworkCredential2 GetCredentialByHost( 
   string host,
   int port,
   string authenticationType
)
[CanBeNull()]
NetworkCredential2^ GetCredentialByHost( 
   String^ host,
   int port,
   String^ authenticationType
) 

Parameters

host
port
authenticationType
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