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
openOptions
Type : Microsoft.SharePoint.SPOpenBinaryOptionsTransmet la valeur spécifiée à partir de l'énumération SPOpenBinaryOptions .
Valeur renvoyée
Type : []
Retourne un tableau d'octets qui contient le contenu du fichier.