DataServiceContext.UseDefaultCredentials Property

WCF Data Services 5.0

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

Supported only by the WCF Data Services 5.0 client for Silverlight.

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

public bool UseDefaultCredentials { get; set; }

Property Value

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

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.

Show: