SPAttachmentCollection.Recycle method

Recycles the attachment that is represented by the specified file name.

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

Syntax

'Declaration
Public Sub Recycle ( _
    leafName As String _
)
'Usage
Dim instance As SPAttachmentCollection
Dim leafName As String

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

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

The leafName does not exist in the collection.

Remarks

The process of recycling an attachment with this method requires that the list item be updated to refresh version information.

See also

Reference

SPAttachmentCollection class

SPAttachmentCollection members

Microsoft.SharePoint namespace