SPFile.OpenBinaryStream 方法 (SPOpenBinaryOptions)
打开指定的文件以流的形式,并指定用于控制如何将打开的文件的选项。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
声明
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
类型:Microsoft.SharePoint.SPOpenBinaryOptions通过在SPOpenBinaryOptions枚举中指定的值。
类型:System.IO.Stream
System.IO.Stream对象,该对象表示的文件。