Export (0) Print
Expand All

NetworkCredential.GetCredential Method

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


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


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.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft