Networking System [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.x.x 1.0.5000.0 2.0.0.0 4.0.0.0 All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe. System.Object System.Collections.IEnumerable System.Net.ICredentials System.Net.ICredentialsByHost

The class stores credentials for multiple Internet resources. Applications that need to access multiple resources can store the credentials for those resources in a instance that then provides the proper set of credentials to the Internet resource when required. When the method is called, it compares the Uniform Resource Identifier (URI) and authentication type provided with those stored in the cache and returns the first set of credentials that match.

The property contains the system credentials of the current security context. For client applications, these represent the user name, password, and domain of the user who is currently logged in. For ASP.NET applications, the default credentials are the user credentials of the logged-in user or the user being impersonated.

Provides storage for multiple credentials.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  The constructor creates a instance.

  Creates a new instance of the class.

  0
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` The or parameter is . The cache already contains a credential for the specified and

  The method places a instance for use with protocols other than SMTP into the . The cache stores credentials in the order in which they are added to it. When the method is called, it returns the proper matching instance.

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

  A that specifies the URI prefix of the resources that the credential grants access to. The authentication scheme used by the resource named in . The to add to the credential cache. 0
- Method
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

  This method places a instance for use with SMTP into the . The cache stores credentials in the order in which they are added to it. When the method is called, it returns a instance that is selected by matching the , , and . The comparison is done case-insensitively.

  The supported values for are "NTLM", "Digest", "Kerberos", and "Negotiate".

  Credentials added with this method are only valid for use with SMTP. This method does not work for HTTP or FTP protocols.

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

  A that identifies the host computer. A that specifies the port to connect to on . A that identifies the authentication scheme used when connecting to using . See Remarks. The to add to the credential cache.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.MonoTODO("Need EnvironmentPermission implementation first")
  System.Net.ICredentials

  A instance that represents the system credentials in use for the current process.

  Requires read access to the environment variable that contains the user name. See .

  The property applies only to NTLM, negotiate, and Kerberos-based authentication.

  represents the system credentials for the current security context in which the application is running. For a client-side application, these are usually the Windows credentials (user name, password, and domain) of the user running the application. For ASP.NET applications, the default credentials are the user credentials of the logged-in user, or the user being impersonated.

  To get the credentials as a instance, use the property.

  The supported values for are "NTLM", "Digest", "Kerberos", and "Negotiate". This method does not work for HTTP or FTP protocols.

  The instance returned by cannot be used to view the user name, password, or domain of the current security context.

  Gets the system credentials of the application.

  0
- Property
  2.0.0.0
  4.0.0.0
  System.Net.NetworkCredential To be added.

  The credentials returned by the property is applicable only for NTLM, negotiate, and Kerberos-based authentication.

  The credentials returned by represents the authentication credentials for the current security context in which the application is running. For a client-side application, these are usually the Windows credentials (user name, password, and domain) of the user running the application. For ASP.NET applications, the default network credentials are the user credentials of the logged-in user, or the user being impersonated.

  Gets the network credentials of the current security context.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Net.NetworkCredential `` `` The or parameter is .

  The method searches the and returns the instance for the specified URI and authorization type. If the contains no matching instance, null is returned.

  uses the longest matching URI prefix in the cache to determine which set of credentials to return for an authorization type. The following table shows examples.

  URI Prefix

  Matches

  http://www.contoso.com/portal/news.htm

  Requests for the specific Web page news.htm.

  http://www.contoso.com/portal/

  Requests for all content in the portal path, except the page news.htm.

  http://www.contoso.com/

  Requests for all resources at www.contoso.com, except those in the portal path.

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

  A or, if there is no matching credential in the cache, null.

  A that specifies the URI prefix of the resources that the credential grants access to. The authentication scheme used by the resource named in . 0
- Method
  2.0.0.0
  4.0.0.0
  System.Net.NetworkCredential `` `` ``

  This method searches the and returns the instance for the specified host, port, and authorization type. The , , and values passed to this method are case-insensitively compared to the values specified when the credential was added to the using the methods.

  The supported values for are "NTLM", "Digest", "Kerberos", and "Negotiate".

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

  A or, if there is no matching credential in the cache, null.

  A that identifies the host computer. A that specifies the port to connect to on . A that identifies the authentication scheme used when connecting to . See Remarks.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Collections.IEnumerator To be added.

  Returns an enumerator that can iterate through the instance.

  An for the .

  0
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

  This method removes a instance from the if the specified URI prefix and authentication protocol match those associated with the credential. Multiple calls to the method for the same have no effect.

  If is null or is null, or no matching credential is found in the cache, this method does nothing.

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

  A that specifies the URI prefix of the resources that the credential is used for. The authentication scheme used by the host named in . 0
- Method
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

  This method removes a instance from the if the specified host, port, and authentication protocol match those associated with the credential. Multiple calls to the method for the same have no effect.

  If is null or is null, or no matching credential is found in the cache, this method does nothing.

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

  A that identifies the host computer. A that specifies the port to connect to on . A that identifies the authentication scheme used when connecting to . See Remarks.
0