File.SaveBinaryDirect 方法 (ClientContext, String, Stream, String)
Uploads the specified file to a SharePoint site with the specified Etag 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, _
etag As String _
)
用法
Dim context As ClientContext
Dim serverRelativeUrl As String
Dim stream As Stream
Dim etag As StringFile.SaveBinaryDirect(context, serverRelativeUrl, _
stream, etag)
public static void SaveBinaryDirect(
ClientContext context,
string serverRelativeUrl,
Stream stream,
string etag
)
参数
context
类型:Microsoft.SharePoint.Client.ClientContextA ClientContext object that represents the SharePoint site’s server context.
serverRelativeUrl
类型:System.StringA string that represents the server-relative URL of the file.
stream
类型:System.IO.StreamA Stream object that represents the file.
etag
类型:System.StringA string that represents the SharePoint server’s Etag (entity tag).