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 命名空间