ScopeUrl
ScopeUrl
會指定搜尋提供者的 URL。
若要尋找搜尋提供者的 URL:
開啟 Internet Explorer。
開啟執行 Web 搜尋的提供者網頁。
搜尋 單字
TEST
。 請注意出現的新 URL。選擇性:在網址列中,從產生的 URL 中移除任何明顯的額外字元。 再次搜尋,然後重複,直到您有搜尋所需的最低 URL 為止。
範例:
http://search.fabrikam.com/results.aspx?q="TEST"&language=en
:移除language=en
成為http://search.fabrikam.com/results.aspx?q="TEST"
複製 URL,然後將它貼到 。
將 取代
TEST
為 {searchTerms}。範例:
http://search.fabrikam.com/results.aspx?q="TEST"
變成http://search.fabrikam.com/results.aspx?q="{searchTerms}"
取代 XML 保留字元: <> 「 ' & 。 如需取代字元的清單,請參閱下表 XML 保留字元。
範例:
http://search.fabrikam.com/results.aspx?q="{searchTerms}"
變成http://search.fabrikam.com/results.aspx?q="{searchTerms}"
複製 URL 並將它貼到 Windows System Image Manager。
XML 保留字元:
取代此字元 | 使用此文字 |
---|---|
> |
|
< |
< |
" |
" |
' |
' |
& |
& |
值
URL |
指定搜尋提供者的 URL。 URL 是字串。 |
這種字串不支援空的元素。 請勿為這種字串建立空值。
有效的組態傳遞
特殊化
父階層
Microsoft-Windows-IE-InternetExplorer | SearchScopes | ScopeUrl |
套用至
如需此元件支援的Windows版本和架構清單,請參閱Microsoft-Windows-IE-InternetExplorer。
XML 範例
下列 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="{searchTerms}"</ScopeUrl>
</Scope>
</SearchScopes>