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)
'Declaration
Public Sub UnlinkFromCopySource
'Usage
Dim instance As SPListItem
instance.UnlinkFromCopySource()
public void UnlinkFromCopySource()
Exception | Condition |
---|---|
ArgumentException | The item does not have a source URL. |
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.