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

SearchExtensions Class

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

Class for deprecated search extension methods

Class for Search extension methods

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

Inheritance Hierarchy

System.Object

Syntax

public static class SearchExtensions

Extension Methods

NameDescription
ExportSearchSettings(ClientContext, String, SearchObjectLevel)Exports the search settings to file.
GetSearchConfiguration(Web)Returns the current search configuration as as string
GetSearchConfiguration(Site)Returns the current search configuration as as string
GetSiteCollectionSearchCenterUrl(Web)Get the search center url for the site collection (Site Settings -> Site collection administration --> Search Settings)
GetWebSearchCenterUrl(Web)Get the search results page url for the web (Site Settings -> Search --> Search Settings)
ImportSearchSettings(ClientContext, String, SearchObjectLevel)Imports search settings from file.
SetSearchConfiguration(Web, String)Sets the search configuration
SetSearchConfiguration(Site, String)Sets the search configuration
SetSiteCollectionSearchCenterUrl(Web, String)Sets the search center url on site collection (Site Settings -> Site collection administration --> Search Settings)
SetWebSearchCenterUrl(Web, String)Sets the search results page url on current web (Site Settings -> Search --> Search Settings)

See also

© 2018 Microsoft