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

SearchExtensions.SetSiteCollectionSearchCenterUrl Method

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

Sets the search center url on site collection (Site Settings -> Site collection administration --> Search Settings)

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

Syntax

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

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  SharePoint site - root web

searchCenterUrl

  Type: System.String
  Search center url

Return Value

Type: void

See also

© 2018 Microsoft