GetCredential Method
Collapse the table of content
Expand the table of content

ICredentialsByHost.GetCredential Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the credential for the specified host, port, and authentication protocol.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

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

Parameters

host
Type: System.String
The host computer that is authenticating the client.
port
Type: System.Int32
The port on host that the client will communicate with.
authenticationType
Type: System.String
The authentication protocol.

Windows Phone OS

Supported in: 8.1

Show:
© 2017 Microsoft