ICredentials Interface
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides the base authentication interface for retrieving credentials for Web client authentication.
Assembly: System.Net (in System.Net.dll)
The ICredentials type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | GetCredential | Returns a NetworkCredential object that is associated with the specified URI, and authentication type. |
The ICredentials interface provides the GetCredential method to objects that supply network credentials to applications.
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_NETWORKING | Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.
