共用方式為


SPFile.OpenBinaryStream method (SPOpenBinaryOptions)

開啟指定的檔案當做資料流,並指定控制檔案的開啟方式的選項。

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

Syntax

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

returnValue = instance.OpenBinaryStream(openOptions)
public Stream OpenBinaryStream(
    SPOpenBinaryOptions openOptions
)

參數

傳回值

Type: System.IO.Stream
System.IO.Stream物件,表示該檔案。

請參閱

參照

SPFile class

SPFile members

OpenBinaryStream overload

Microsoft.SharePoint namespace

SPFile.OpenBinaryStream

Microsoft.SharePoint.SPOpenBinaryOptions