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:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Property Credentials As ICredentials 
    Get 
    Set
'Usage
Dim instance As DataServiceContext 
Dim value As ICredentials 

value = instance.Credentials

instance.Credentials = value
public ICredentials Credentials { get; set; }
public:
property ICredentials^ Credentials {
    ICredentials^ get ();
    void set (ICredentials^ value);
}
member Credentials : ICredentials with get, set
function get Credentials () : ICredentials 
function set Credentials (value : ICredentials)

Property Value

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

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace