共用方式為


SPAttachmentCollection.Recycle method

回收由指定的檔名的附件。

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

Syntax

'宣告
Public Sub Recycle ( _
    leafName As String _
)
'用途
Dim instance As SPAttachmentCollection
Dim leafName As String

instance.Recycle(leafName)
public void Recycle(
    string leafName
)

參數

Exceptions

Exception Condition
ArgumentOutOfRangeException

leafName不存在於集合中。

備註

使用這個方法回收附件的處理程序需要更新的清單項目,以重新整理版本資訊。

請參閱

參照

SPAttachmentCollection class

SPAttachmentCollection members

Microsoft.SharePoint namespace