共用方式為


SPFile.OpenBinary method (SPOpenBinaryOptions)

開啟指定的檔案,做為位元組陣列,並指定控制檔案的開啟方式的選項。

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

Syntax

'宣告
Public Function OpenBinary ( _
    openOptions As SPOpenBinaryOptions _
) As Byte()
'用途
Dim instance As SPFile
Dim openOptions As SPOpenBinaryOptions
Dim returnValue As Byte()

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

參數

傳回值

Type: []
傳回包含檔案內容的位元組陣列。

請參閱

參照

SPFile class

SPFile members

OpenBinary overload

Microsoft.SharePoint namespace

SPFile.OpenBinary

Microsoft.SharePoint.SPOpenBinaryOptions