Share via


SPFile.OpenBinary-Methode (SPOpenBinaryOptions)

Öffnet die angegebene Datei als Bytearray und gibt Optionen, die steuern, wie die Datei geöffnet wird.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function OpenBinary ( _
    openOptions As SPOpenBinaryOptions _
) As Byte()
'Usage
Dim instance As SPFile
Dim openOptions As SPOpenBinaryOptions
Dim returnValue As Byte()

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

Parameter

Rückgabewert

Typ: []
Gibt ein Byte-Array, das den Inhalt der Datei enthält.

Siehe auch

Referenz

SPFile Klasse

SPFile-Member

OpenBinary-Überladung

Microsoft.SharePoint-Namespace

SPFile.OpenBinary

Microsoft.SharePoint.SPOpenBinaryOptions