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
openOptions
Typ: Microsoft.SharePoint.SPOpenBinaryOptionsÜbergibt den Wert der SPOpenBinaryOptions -Enumeration angegeben.
Rückgabewert
Typ: []
Gibt ein Byte-Array, das den Inhalt der Datei enthält.