Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPFile.SaveFileFormatMetaInfoStream method

Saves the stream of metadata that contains file format information for the specified file to the database.

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

public void SaveFileFormatMetaInfoStream(
	Stream data,
	int dataOffset,
	int dataLength,
	bool failIfExists,
	string etagMatch


Type: System.IO.Stream

The data stream to be saved.

Type: System.Int32

The integer offset into the data stream, in bytes, at which to begin reading.

Type: System.Int32

The amount of data in the data stream, in bytes, to read.

Type: System.Boolean

Boolean that specifies whether file-format metadata exists for the data stream. If it returns true, the method throws an error if non-null file-format metadata already exists for the file.

Type: System.String

The Etag value to match when saving the file. If you specify a null Etag, the save operation always succeeds.

Permission checks by using Level return only the level of the file that you can see.

© 2015 Microsoft