Export (0) Print
Expand All

SPListItem.ReplaceLink Method

Windows SharePoint Services 3

Replaces all instances of a specified link in the list item with a new link.

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

public void ReplaceLink(
	string oldUrl,
	string newUrl
)

Parameters

oldUrl
Type: System.String
A string that contains the absolute URL to be replaced.
newUrl
Type: System.String
A string that contains the absolute URL with which to replace the old URL.

The ReplaceLink method of the SPListItem class immediately updates the item with the new link. Do not call the Update method when calling this method.

Community Additions

ADD
Show:
© 2014 Microsoft