Export (0) Print
Expand All

SPFile.ReplaceLink method

Replaces all instances in the file of a specified link 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

The old absolute URL to be replaced.

newUrl
Type: System.String

The new absolute URL that replaces the old URL.

ExceptionCondition
SPException

An error occurred when updating the links.

Show:
© 2014 Microsoft