共用方式為


SPFile.SaveFileFormatMetaInfoStream method

儲存中繼資料,其中包含指定的檔案到資料庫的檔案格式資訊的資料流。

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

Syntax

'宣告
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, _
    etagMatch)
public void SaveFileFormatMetaInfoStream(
    Stream data,
    int dataOffset,
    int dataLength,
    bool failIfExists,
    string etagMatch
)

參數

  • dataOffset
    Type: System.Int32

    位移至資料流,以位元組為單位,用來開始讀取的整數。

  • dataLength
    Type: System.Int32

    在資料流,以位元組為單位,若要讀取的資料量。

  • failIfExists
    Type: System.Boolean

    指定檔案格式的中繼資料是否存在的資料流的布林值。如果它傳回true,如果檔案已經存在非 null 的檔案格式的中繼資料方法擲回錯誤。

  • etagMatch
    Type: System.String

    Etag 值,以符合儲存檔案時。如果您指定 null Etag,儲存作業一律會成功。

備註

藉由使用Level的使用權限檢查傳回只有您所見的檔案層級。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace