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
)
參數
openOptions
Type: Microsoft.SharePoint.SPOpenBinaryOptions指定從SPOpenBinaryOptions列舉值的傳遞。
傳回值
Type: System.IO.Stream
System.IO.Stream物件,表示該檔案。