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
)
參數
leafName
Type: System.String附加檔案的名稱。
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | leafName不存在於集合中。 |
備註
如果您使用RecycleNow方法回收附件,動作會立即生效,您不需要呼叫Update方法,以更新清單項目,並重新整理版本資訊。