SPListItem.UnlinkFromCopySource method
如果從複製作業結果項目,請清除來源項目 URL。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub UnlinkFromCopySource
'用途
Dim instance As SPListItem
instance.UnlinkFromCopySource()
public void UnlinkFromCopySource()
Exceptions
Exception | Condition |
---|---|
ArgumentException | 此項目沒有來源 URL。 |
備註
使用此方法相當於按一下Unlink from SourceView Properties ] 索引標籤上,但不是將Copy Destination移除來源項目。
如果來自複製作業的結果項目, CopySource屬性會包含來源項目的 URL,這個方法會清除此 URL。