SPListItem.UnlinkFromCopySource method

Clears the source item URL if the item results from a copy operation.

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

Syntax

'Declaration
Public Sub UnlinkFromCopySource
'Usage
Dim instance As SPListItem

instance.UnlinkFromCopySource()
public void UnlinkFromCopySource()

Exceptions

Exception Condition
ArgumentException

The item does not have a source URL.

Remarks

Using this method is equivalent to clicking Unlink from Source on the View Properties page, but not removing the Copy Destination from the source item.

If the item results from a copy operation, the CopySource property contains the URL of the source item, and this method clears this URL.

See also

Reference

SPListItem class

SPListItem members

Microsoft.SharePoint namespace