Export (0) Print
Expand All

SPFile.OpenBinaryStream method (SPOpenBinaryOptions, String, SPFileRightsManagementSettings, String, String)

SharePoint 2013

Opens the file as a stream.

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

public Stream OpenBinaryStream(
	SPOpenBinaryOptions openOptions,
	string etagNotMatch,
	SPFileRightsManagementSettings fileRightsManagementSettings,
	out string etagNew,
	out string contentTagNew
)

Parameters

openOptions
Type: Microsoft.SharePoint.SPOpenBinaryOptions

Options to use when opening the file.

etagNotMatch
Type: System.String

The etag value to use for not match. If null, the file is always opened. If not-null and the match operation fails, an exception is thrown.

fileRightsManagementSettings
Type: Microsoft.SharePoint.SPFileRightsManagementSettings

The Information Rights Management settings used when openning this file stream.

etagNew
Type: System.String

The ETag value of the newly opened file.

contentTagNew
Type: System.String

The ContentTag value of the newly opened file.

Return value

Type: System.IO.Stream
Show:
© 2014 Microsoft