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

NetworkCredential.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 an instance of the NetworkCredential class for the specified host, port, and authentication type.

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
The host computer that authenticates the client.
port
Type: System.Int32
The port on the host that the client communicates with.
authenticationType
Type: System.String
The type of authentication requested, as defined in the IAuthenticationModule.AuthenticationType property.

Implements

ICredentialsByHost.GetCredential(String, Int32, String)

Windows Phone OS

Supported in: 8.1

Show:
© 2017 Microsoft