ClientRuntimeContext.SetupRequestCredential 方法

Associates the authentication information with the specified request.

命名空间:  Microsoft.SharePoint.Client
程序集:  Microsoft.SharePoint.Client.Runtime(位于 Microsoft.SharePoint.Client.Runtime.dll 中)

语法

声明
Public Shared Sub SetupRequestCredential ( _
    context As ClientRuntimeContext, _
    request As HttpWebRequest _
)
用法
Dim context As ClientRuntimeContext
Dim request As HttpWebRequestClientRuntimeContext.SetupRequestCredential(context, _
    request)
public static void SetupRequestCredential(
    ClientRuntimeContext context,
    HttpWebRequest request
)

参数

备注

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”.

另请参阅

引用

ClientRuntimeContext 类

ClientRuntimeContext 成员

Microsoft.SharePoint.Client 命名空间