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
)
參數
openOptions
Type: Microsoft.SharePoint.SPOpenBinaryOptions指定從SPOpenBinaryOptions列舉值的傳遞。
傳回值
Type: []
傳回包含檔案內容的位元組陣列。