Returns a NetworkCredential object that is associated with the specified URI, and authentication type.
Assembly: System.Net (in System.Net.dll)
'Declaration Function GetCredential ( _ uri As Uri, _ authType As String _ ) As NetworkCredential
NetworkCredential GetCredential( Uri uri, string authType )
A string that specifies the type of authentication.
The GetCredential method returns a NetworkCredential instance that contains the credentials that are associated with the specified URI and authorization scheme. When no credentials are available, the GetCredential method returns nulla null reference (Nothing in Visual Basic).
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
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.