System.Net.HttpWebRequest.UseDefaultCredentials Property

Gets or sets a bool value that controls whether default credentials are sent with requests.

Syntax

public override bool UseDefaultCredentials { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Set this property to true when requests made by this System.Net.HttpWebRequest object should, if requested by the server, be authenticated using the credentials of the currently logged on user. For client applications, this is the desired behavior in most scenarios. For middle-tier applications, such as ASP.NET applications, instead of using this property, you would typically set the HttpWebRequest.Credentials property to the credentials of the client on whose behalf the request is made.

Requirements

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