CredentialCache.GetCredential Method (String, Int32, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the NetworkCredential instance associated with the specified host, port, and authentication protocol.
Namespace: System.Net
Assembly: System.Net (in System.Net.dll)
Syntax
Public Function GetCredential ( _
host As String, _
port As Integer, _
authenticationType As String _
) As NetworkCredential
public NetworkCredential GetCredential(
string host,
int port,
string authenticationType
)
Parameters
- host
Type: System..::.String
A String that identifies the host computer.
- port
Type: System..::.Int32
A Int32 that specifies the port to connect to on host.
- authenticationType
Type: System..::.String
A String that identifies the authentication scheme used when connecting to host.
Return Value
Type: System.Net..::.NetworkCredential
Returns NetworkCredential.
Implements
ICredentialsByHost..::.GetCredential(String, Int32, String)
Version Information
Windows Phone OS
Supported in: 8.1