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

CredentialCache.GetCredential Method (Uri, String)

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

Returns a NetworkCredential instance associated with the specified Uniform Resource Identifier (URI) and authentication type.

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

public NetworkCredential GetCredential(
	Uri uriPrefix,
	string authType
)

Parameters

uriPrefix
Type: System.Uri
A Uri that specifies the URI prefix of the resources that the credential grants access to.
authType
Type: System.String
The authentication scheme used by the resource named in uriPrefix.

Implements

ICredentials.GetCredential(Uri, String)

Windows Phone OS

Supported in: 8.1

Show:
© 2017 Microsoft