System.Net.CredentialCache Members

The members of System.Net.CredentialCache are listed below.

See Also: Inherited members from System.Object

Public Constructors

Creates a new instance of the System.Net.CredentialCache class.

Public Properties

[read-only]
static
DefaultCredentialsICredentials.

Gets the system credentials of the application.

[read-only]
static
DefaultNetworkCredentialsNetworkCredential.

Gets the network credentials of the current security context.

Public Methods

Add(Uri, string, NetworkCredential)

Adds a System.Net.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.

Add(string, int, string, NetworkCredential)

Adds a System.Net.NetworkCredential instance for use with SMTP to the credential cache and associates it with a host computer, port, and authentication protocol. Credentials added using this method are valid for SMTP only. This method does not work for HTTP or FTP requests.

GetCredential(Uri, string) : NetworkCredential

Returns the System.Net.NetworkCredential instance associated with the specified Uniform Resource Identifier (URI) and authentication type.

GetCredential(string, int, string) : NetworkCredential

Returns the System.Net.NetworkCredential instance associated with the specified host, port, and authentication protocol.

GetEnumerator() : IEnumerator

Returns an enumerator that can iterate through the System.Net.CredentialCache instance.

Remove(Uri, string)

Deletes a System.Net.NetworkCredential instance from the cache if it is associated with the specified Uniform Resource Identifier (URI) prefix and authentication protocol.

Remove(string, int, string)

Deletes a System.Net.NetworkCredential instance from the cache if it is associated with the specified host, port, and authentication protocol.