次の方法で共有


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 名前空間