Export (0) Print
Expand All

SPFile.SaveBinary method (Stream, Boolean)

Saves the file in binary format based on the specified stream and a Boolean value that specifies whether to check required fields.

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

public void SaveBinary(
	Stream file,
	bool checkRequiredFields
)

Parameters

file
Type: System.IO.Stream

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

checkRequiredFields
Type: System.Boolean

true to check required fields when saving the file; otherwise, false.

Show:
© 2014 Microsoft