Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
data
Type: System.IO.StreamThe data stream to be saved.
dataOffset
Type: System.Int32The integer offset into the data stream, in bytes, at which to begin reading.
dataLength
Type: System.Int32The amount of data in the data stream, in bytes, to read.
failIfExists
Type: System.BooleanBoolean 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.StringThe 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.