CredentialCache.Add Method (Uri, String, NetworkCredential)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Adds a NetworkCredential instance to the credential cache for use with protocols other than SMTP and associates it with a Uniform Resource Identifier (URI) prefix and authentication protocol.
Assembly: System.Net (in System.Net.dll)
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.
- cred
- Type: System.Net.NetworkCredential
The NetworkCredential to add to the credential cache.
Show: