Share via


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

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

Syntax

'Declaration
Public Function OpenBinaryStream ( _
    openOptions As SPOpenBinaryOptions, _
    etagNotMatch As String, _
    fileRightsManagementSettings As SPFileRightsManagementSettings, _
    <OutAttribute> ByRef etagNew As String, _
    <OutAttribute> ByRef contentTagNew As String _
) As Stream
'Usage
Dim instance As SPFile
Dim openOptions As SPOpenBinaryOptions
Dim etagNotMatch As String
Dim fileRightsManagementSettings As SPFileRightsManagementSettings
Dim etagNew As String
Dim contentTagNew As String
Dim returnValue As Stream

returnValue = instance.OpenBinaryStream(openOptions, _
    etagNotMatch, fileRightsManagementSettings, _
    etagNew, contentTagNew)
public Stream OpenBinaryStream(
    SPOpenBinaryOptions openOptions,
    string etagNotMatch,
    SPFileRightsManagementSettings fileRightsManagementSettings,
    out string etagNew,
    out string contentTagNew
)

Parameters

Return value

Type: System.IO.Stream

See also

Reference

SPFile class

SPFile members

OpenBinaryStream overload

Microsoft.SharePoint namespace