Поделиться через


Метод 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
)

Параметры

  • serverRelativeUrl
    Тип: System.String

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

  • etag
    Тип: System.String

    A string that represents the SharePoint server’s Etag (entity tag).

См. также

Справочные материалы

File класс

Элементы File

Перегрузка SaveBinaryDirect

Пространство имен Microsoft.SharePoint.Client