Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Recycles the attachment that is represented by the specified file name.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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
leafName
Type: System.StringThe name of the attached file.
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.