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

  • 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

See Also

Reference

CredentialCache Class

GetCredential Overload

System.Net Namespace