Share via


ClientRuntimeContext.SetupRequestCredential method

Associates the authentication information with the specified request.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Shared Sub SetupRequestCredential ( _
    context As ClientRuntimeContext, _
    request As HttpWebRequest _
)
'Usage
Dim context As ClientRuntimeContext
Dim request As HttpWebRequestClientRuntimeContext.SetupRequestCredential(context, _
    request)
public static void SetupRequestCredential(
    ClientRuntimeContext context,
    HttpWebRequest request
)

Parameters

Remarks

This static method associates the authentication information with the current request. By default, the authentication is set by the DefaultCredentials property that represents the system credentials under which the application is running. The other two authentication modes are “Forms Authentication” and “Anonymous”.

See also

Reference

ClientRuntimeContext class

ClientRuntimeContext members

Microsoft.SharePoint.Client namespace