Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Credentials Property

DataServiceContext.Credentials Property

Gets or sets the authentication information that is used by each query created by using the DataServiceContext object.

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

public ICredentials Credentials { get; set; }

Property Value

Type: System.Net.ICredentials
The base authentication interface for retrieving credentials for Web client authentication.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft