Share via


SPFileVersion.OpenBinaryStream Method

Opens the file as a stream.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.MarshalByRefObject)> _
Public Function OpenBinaryStream As Stream
'Usage
Dim instance As SPFileVersion
Dim returnValue As Stream

returnValue = instance.OpenBinaryStream()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.MarshalByRefObject)]
public Stream OpenBinaryStream()

Return Value

Type: System.IO.Stream
An SPFileStream object that contains the file version.

Remarks

Exposes a Stream object around a SharePoint Foundation file version.

See Also

Reference

SPFileVersion Class

SPFileVersion Members

Microsoft.SharePoint Namespace