Export (0) Print
Expand All

CredentialCache Methods

The CredentialCache type exposes the following members.

  Name Description
Public method Add(Uri, String, NetworkCredential) 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.
Public method Add(String, Int32, String, NetworkCredential) Adds a 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.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetCredential(Uri, String) Returns the NetworkCredential instance associated with the specified Uniform Resource Identifier (URI) and authentication type.
Public method GetCredential(String, Int32, String) Returns the NetworkCredential instance associated with the specified host, port, and authentication protocol.
Public method GetEnumerator Returns an enumerator that can iterate through the CredentialCache instance.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove(Uri, String) Deletes a NetworkCredential instance from the cache if it is associated with the specified Uniform Resource Identifier (URI) prefix and authentication protocol.
Public method Remove(String, Int32, String) Deletes a NetworkCredential instance from the cache if it is associated with the specified host, port, and authentication protocol.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
Show:
© 2014 Microsoft