Query.SafeQueryPropertiesTemplateUrl 屬性
指定 QueryProperties 範本的位置。此屬性時,必須指定發行查詢沒有啟用UseRemoteAPIs() 權限的使用者。如果沒有啟用UseRemoteAPIs() 權限,不會執行查詢,您可以將IgnoreSafeQueryPropertiesTemplateUrl() 屬性true改為。
命名空間: Microsoft.SharePoint.Client.Search.Query
組件: Microsoft.SharePoint.Client.Search (在 Microsoft.SharePoint.Client.Search.dll 中)
語法
'宣告
Public Property SafeQueryPropertiesTemplateUrl As String
Get
Set
'用途
Dim instance As Query
Dim value As String
value = instance.SafeQueryPropertiesTemplateUrl
instance.SafeQueryPropertiesTemplateUrl = value
public string SafeQueryPropertiesTemplateUrl { get; set; }
屬性值
備註
根據預設, UseRemoteAPIs() 未授與匿名使用者。
配置 「 網頁組件] 或 [檔案],則必須使用指定的 URL。主應用程式應該是 「 webroot 」。[網頁組件 」 Url 路徑必須放在 [網頁組件頁面的網頁的相對路徑。查詢字串 URL 的必須包含鍵 「 識別碼 」 的值,包含網頁組件 id。例如 ︰ webpart://webroot/Pages/results.aspx?id=4。[檔案] Url 路徑必須網頁的相對路徑,其中包含序列的 QueryProperties 範本的檔案。