範圍

Scope 指定搜尋提供者。

子元素

設定 描述
FaviconURL 指定特定搜尋範圍專案圖示的路徑。 Internet Explorer 8 到 Internet Explorer 11。
PreviewURL 指定 [ 加速器 ] 視窗中顯示預覽的 URL。 Internet Explorer 8 到 Internet Explorer 11。
ScopeDefault 指定搜尋範圍專案是否為預設搜尋提供者。 Internet Explorer 7 到 Internet Explorer 11。
ScopeDisplayName 指定搜尋提供者的顯示名稱。 Internet Explorer 7 到 Internet Explorer 11。
ScopeKey 指定搜尋提供者的唯一字串。 Internet Explorer 7 到 Internet Explorer 11。
ScopeUrl 指定搜尋提供者的 URL。 Internet Explorer 7 到 Internet Explorer 11。
ShowSearchSuggestions 指定是否顯示搜尋建議。 Internet Explorer 8 到 Internet Explorer 11。
SuggestionsURL 使用以 XML 為基礎的搜尋,指定在搜尋期間向使用者顯示的建議。 Internet Explorer 8 到 Internet Explorer 11。
SuggestionsURL_JSON 指定在搜尋期間向使用者顯示的建議,方法是使用以 JavaScript 物件標記法為基礎的搜尋 (JSON) 。 Internet Explorer 8 到 Internet Explorer 11。

有效的組態傳遞

特殊化

父階層

Microsoft-Windows-IE-InternetExplorer | SearchScopes | 範圍

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 Microsoft-Windows-IE-InternetExplorer

XML 範例

下列範例示範如何設定搜尋提供者。

<SearchScopes>
   <Scope wcm:action="add">
      <ScopeDefault>true</ScopeDefault>
      <ScopeDisplayName>MyFirstSearchProvider</ScopeDisplayName>
      <ScopeKey>SearchProvider1</ScopeKey>
      <ScopeUrl>http://www.contoso.com/search?q={searchTerms}</ScopeUrl>
   </Scope>
   <Scope wcm:action="add">
      <ScopeDisplayName>MySecondSearchProvider</ScopeDisplayName>
      <ScopeKey>SearchProvider2</ScopeKey>
      <ScopeUrl>http://search.fabrikam.com/results.aspx?q=&quot;{searchTerms}&quot;</ScopeUrl>
   </Scope>
</SearchScopes>

SearchScopes