File.OpenBinaryDirect 方法 (ClientContext, String)

Downloads the specified file from a SharePoint site without requiring an ExecuteQuery() method call.

命名空间:  Microsoft.SharePoint.Client
程序集:  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Shared Function OpenBinaryDirect ( _
    context As ClientContext, _
    serverRelativeUrl As String _
) As FileInformation
用法
Dim context As ClientContext
Dim serverRelativeUrl As String
Dim returnValue As FileInformation

returnValue = File.OpenBinaryDirect(context, _
    serverRelativeUrl)
public static FileInformation OpenBinaryDirect(
    ClientContext context,
    string serverRelativeUrl
)

参数

  • serverRelativeUrl
    类型:System.String

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

返回值

类型:Microsoft.SharePoint.Client.FileInformation
A FileInformation object that contains a reference to the file stream.

另请参阅

引用

File 类

File 成员

OpenBinaryDirect 重载

Microsoft.SharePoint.Client 命名空间