共用方式為


SPFileVersionCollection.Delete method

刪除集合中指定之索引處的檔案版本物件。

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

Syntax

'宣告
Public Sub Delete ( _
    iIndex As Integer _
)
'用途
Dim instance As SPFileVersionCollection
Dim iIndex As Integer

instance.Delete(iIndex)
public void Delete(
    int iIndex
)

參數

  • iIndex
    Type: System.Int32

    指定要刪除的檔案版本物件的 32 位元整數。

備註

這個方法會呼叫this[iIndex].ID與DeleteByID(Int32)方法。

這個方法會清除集合中的檔案版本資訊。

請參閱

參照

SPFileVersionCollection class

SPFileVersionCollection members

Microsoft.SharePoint namespace