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

NetworkCredential.GetCredential Method (Uri, 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 Uniform Resource Identifier (URI) and authentication type.

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

public NetworkCredential GetCredential(
	Uri uri,
	string authType
)

Parameters

uri
Type: System.Uri
The Uri that the client provides authentication for.
authType
Type: System.String
A string that specifies the type of authentication requested.

Implements

ICredentials.GetCredential(Uri, String)

The GetCredential method always returns a reference to itself, regardless of the input parameters passed to this method.

The authType parameter is not currently used.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft