Share via


PublishingService.GetChangedFriendlyUrls method

Returns a collection of the friendly URLs for the specified siteId parameter, and webId parameter values that have changed since the last search crawl.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function GetChangedFriendlyUrls ( _
    siteId As Guid, _
    webId As Guid, _
    ByRef pagingToken As String _
) As FriendlyUrl()
'Usage
Dim instance As PublishingService
Dim siteId As Guid
Dim webId As Guid
Dim pagingToken As String
Dim returnValue As FriendlyUrl()

returnValue = instance.GetChangedFriendlyUrls(siteId, _
    webId, pagingToken)
[WebMethodAttribute]
public FriendlyUrl[] GetChangedFriendlyUrls(
    Guid siteId,
    Guid webId,
    ref string pagingToken
)

Parameters

  • siteId
    Type: System.Guid

    ID of the site for which to return friendly URLs.

  • pagingToken
    Type: System.String

    There may be a large number of results that need to be returned. In that case, the results need to be chunked into pages. The pagingToken parameter is an opaque token that SharePoint Server returns to the caller of the PublishingService web service. The caller keeps calling the GetFriendlyUrlBasedWebs(System.Guid,System.String@) method with the pagingToken parameter, and SharePoint Server continues to update the paging token until the last page is reached. When the last page is reached, SharePoint Server sets it to an empty string. In the first call, the caller is supposed to set the pagingToken parameter to an empty string.

Return value

Type: []
A collection of FriendlyUrl objects.

See also

Reference

PublishingService class

PublishingService members

Microsoft.SharePoint.Publishing.WebServices namespace