Table of contents
TOC
Collapse the table of content
Expand the table of content

SearchExtensions.SetWebSearchCenterUrl Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Sets the search results page url on current web (Site Settings -> Search --> Search Settings)

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void SetWebSearchCenterUrl(this Web web, String searchCenterUrl)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  SharePoint current web

searchCenterUrl

  Type: System.String
  Search results page url

Return Value

Type: void

See also

© 2018 Microsoft