Compartir a través de


DataServiceContext.Credentials Property

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

Gets or sets the authentication information that is used when you send a request to the data service.

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

Syntax

'Declaration
Public Property Credentials As ICredentials
public ICredentials Credentials { get; set; }

Property Value

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

Remarks

The Credentials property is used to set the credentials that are used by each request sent by the current DataServiceContext instance.

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.