Compartilhar via


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)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.MarshalByRefObject)> _
Public Sub SaveFileFormatMetaInfoStream ( _
    data As Stream, _
    dataOffset As Integer, _
    dataLength As Integer, _
    failIfExists As Boolean, _
    etagMatch As String _
)
'Usage
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, _
    etagMatch)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.MarshalByRefObject)]
public void SaveFileFormatMetaInfoStream(
    Stream data,
    int dataOffset,
    int dataLength,
    bool failIfExists,
    string etagMatch
)

Parameters

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

Remarks

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

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace