Share via


SPFile.OpenBinary - Méthode (SPOpenBinaryOptions)

Ouvre le fichier spécifié sous la forme d'un tableau d'octets et spécifie les options qui contrôlent la façon dont le fichier s'ouvre.

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

Syntaxe

'Déclaration
Public Function OpenBinary ( _
    openOptions As SPOpenBinaryOptions _
) As Byte()
'Utilisation
Dim instance As SPFile
Dim openOptions As SPOpenBinaryOptions
Dim returnValue As Byte()

returnValue = instance.OpenBinary(openOptions)
public byte[] OpenBinary(
    SPOpenBinaryOptions openOptions
)

Paramètres

Valeur renvoyée

Type : []
Retourne un tableau d'octets qui contient le contenu du fichier.

Voir aussi

Référence

SPFile classe

SPFile - Membres

OpenBinary - Surcharge

Microsoft.SharePoint - Espace de noms

SPFile.OpenBinary

Microsoft.SharePoint.SPOpenBinaryOptions