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 Sub SaveFileFormatMetaInfoStream ( _
	data As Stream, _
	dataOffset As Integer, _
	dataLength As Integer, _
	failIfExists As Boolean, _
	etagMatch As String _
Dim instance As SPFile
Dim data As Stream
Dim dataOffset As Integer
Dim dataLength As Integer
Dim failIfExists As Boolean
Dim etagMatch As String

instance.SaveFileFormatMetaInfoStream(data, _
	dataOffset, dataLength, failIfExists, _


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.