Partager via


File.OpenBinaryDirect - Méthode (ClientContext, String)

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

Espace de noms :  Microsoft.SharePoint.Client
Assembly :  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Shared Function OpenBinaryDirect ( _
    context As ClientContext, _
    serverRelativeUrl As String _
) As FileInformation
'Utilisation
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
)

Paramètres

  • serverRelativeUrl
    Type : System.String

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

Valeur renvoyée

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

Voir aussi

Référence

File classe

File - Membres

OpenBinaryDirect - Surcharge

Microsoft.SharePoint.Client - Espace de noms