DataServiceContext.UseDefaultCredentials Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets whether default credentials are used to authenticate requests to the data service.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Property UseDefaultCredentials As Boolean
public bool UseDefaultCredentials { get; set; }

Property Value

Type: System.Boolean
true when the default credentials should be used; otherwise false.

Remarks

Set this property to true when requests made by this DataServiceContext instance should, when it is requested by the server, be authenticated using the credentials of the currently logged on user.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.