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)
Syntax
Public Function GetCredential ( _
uriPrefix As Uri, _
authType As String _
) As NetworkCredential
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.
Return Value
Type: System.Net..::.NetworkCredential
Returns NetworkCredential.
Implements
ICredentials..::.GetCredential(Uri, String)
Version Information
Windows Phone OS
Supported in: 8.1