System.Net.CredentialCache: Method Members

The methods of System.Net.CredentialCache are listed below. For a list of all members, see the CredentialCache Members list.

See Also: Inherited members from System.Object

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.