GetCredential Method (String, Int32, String)
Collapse the table of content
Expand the table of content

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)

'Declaration
Public Function GetCredential ( _
	host As String, _
	port As Integer, _
	authenticationType As String _
) As NetworkCredential

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.

Implements

ICredentialsByHost.GetCredential(String, Int32, String)

Windows Phone OS

Supported in: 8.1

Show:
© 2017 Microsoft