共用方式為


SPAttachmentCollection.RecycleNow method

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

Syntax

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

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

參數

Exceptions

Exception Condition
ArgumentOutOfRangeException

leafName不存在於集合中。

備註

如果您使用RecycleNow方法回收附件,動作會立即生效,您不需要呼叫Update方法,以更新清單項目,並重新整理版本資訊。

請參閱

參照

SPAttachmentCollection class

SPAttachmentCollection members

Microsoft.SharePoint namespace