SPFile.SaveBinary method (Stream, SPFileSaveBinaryParameters)

SharePoint 2013

Saves the file in binary format based on a stream that contains a file and an SPFileSaveBinaryParameters object with additional parameters.

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

'Declaration
Public Sub SaveBinary ( _
	file As Stream, _
	parameters As SPFileSaveBinaryParameters _
)
'Usage
Dim instance As SPFile
Dim file As Stream
Dim parameters As SPFileSaveBinaryParameters

instance.SaveBinary(file, parameters)

Parameters

file
Type: System.IO.Stream

A System.IO.Stream object that contains the file.

parameters
Type: Microsoft.SharePoint.SPFileSaveBinaryParameters

An SPFileSaveBinaryParameters object that contains all other parameters to the method.

Show: