次の方法で共有


SPListItem.ReplaceLink method

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)

Syntax

'Declaration
Public Sub ReplaceLink ( _
    oldUrl As String, _
    newUrl As String _
)
'Usage
Dim instance As SPListItem
Dim oldUrl As String
Dim newUrl As String

instance.ReplaceLink(oldUrl, newUrl)
public void ReplaceLink(
    string oldUrl,
    string newUrl
)

Parameters

  • newUrl
    Type: System.String

    The absolute URL with which to replace the old URL.

Remarks

This method immediately updates the item with the new link. There is no need to call the Update method after calling this method.

See also

Reference

SPListItem class

SPListItem members

Microsoft.SharePoint namespace