次の方法で共有


File.SaveBinaryDirect メソッド (ClientContext, String, Stream, Boolean)

Uploads the specified file to a SharePoint site without requiring an ExecuteQuery() method call.

名前空間:  Microsoft.SharePoint.Client
アセンブリ:  Microsoft.SharePoint.Client (Microsoft.SharePoint.Client.dll 内)

構文

'宣言
Public Shared Sub SaveBinaryDirect ( _
    context As ClientContext, _
    serverRelativeUrl As String, _
    stream As Stream, _
    overwriteIfExists As Boolean _
)
'使用
Dim context As ClientContext
Dim serverRelativeUrl As String
Dim stream As Stream
Dim overwriteIfExists As BooleanFile.SaveBinaryDirect(context, serverRelativeUrl, _
    stream, overwriteIfExists)
public static void SaveBinaryDirect(
    ClientContext context,
    string serverRelativeUrl,
    Stream stream,
    bool overwriteIfExists
)

パラメーター

  • serverRelativeUrl
    型: System.String

    A string that represents the server-relative URL of the file.

  • overwriteIfExists
    型: System.Boolean

    A Boolean value that specifies whether the file is overwritten if it already exists.

関連項目

参照先

File クラス

File メンバー

SaveBinaryDirect オーバーロード

Microsoft.SharePoint.Client 名前空間