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
)

Parameters

data
Type: System.IO.Stream

The data stream to be saved.

dataOffset
Type: System.Int32

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

dataLength
Type: System.Int32

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

failIfExists
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.

etagMatch
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.

Show:
© 2015 Microsoft