System.Net.CredentialCache.DefaultNetworkCredentials Property

Gets the network credentials of the current security context.

Syntax

public static NetworkCredential DefaultNetworkCredentials { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

The credentials returned by CredentialCache.DefaultNetworkCredentials 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.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0