Add Method (Uri, String, NetworkCredential)
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

public void Add(
	Uri uriPrefix,
	string authType,
	NetworkCredential cred
)

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.

Windows Phone OS

Supported in: 8.1

Show:
© 2017 Microsoft