次の方法で共有


QueryResultBase.QueryTemplateWherePart プロパティ (Microsoft.SharePoint.Portal.WebControls)

QueryResultBase クラスの QueryTemplateWherePart プロパティは、このクラスから派生する Web パーツで使用されるクエリ テンプレートの WHERE 句を取得または設定します。

名前空間: Microsoft.SharePoint.Portal.WebControls
アセンブリ: Microsoft.SharePoint.Portal (microsoft.sharepoint.portal.dll 内)

構文

'宣言
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
<DefaultValueAttribute("")> _
Public Property QueryTemplateWherePart As String
'使用
Dim instance As QueryResultBase
Dim value As String

value = instance.QueryTemplateWherePart

instance.QueryTemplateWherePart = value
[WebPartStorageAttribute(Storage.Shared)] 
[BrowsableAttribute(false)] 
[DefaultValueAttribute("")] 
public string QueryTemplateWherePart { get; set; }

プロパティ値

このクラスから派生する Web パーツで使用されるクエリ テンプレートの WHERE 句を含む文字列。

備考

このプロパティをオーバーライドして、WHERE 句の既定の値またはプレースホルダを取得または設定します。たとえば、SearchResults クラスではこのプロパティが以下のように設定されます。

WHERE WITH ("DAV:contentclass":0,"urn:schemas.microsoft.com:fulltextqueryinfo:description":0,"urn:schemas.microsoft.com:fulltextqueryinfo:sourcegroup":0,"urn:schemas.microsoft.com:fulltextqueryinfo:cataloggroup":0,"urn:schemas-microsoft-com:office:office#Keywords":1.0,"urn:schemas-microsoft-com:office:office#Title":0.9,"DAV:displayname":0.9,"urn:schemas-microsoft-com:publishing:Category":0.8,"urn:schemas-microsoft-com:office:office#Subject":0.8,"urn:schemas-microsoft-com:office:office#Author":0.7,"urn:schemas-microsoft-com:office:office#Description":0.5,"urn:schemas-microsoft-com:sharepoint:portal:profile:PreferredName":0.2,contents:0.1,*:0.05) AS #WeightedProps

(("urn:schemas-microsoft-com:publishing:HomeBestBetKeywords"= some array ['%__keywordinput__%'] RANK BY COERCION(absolute, 999))

OR (FREETEXT("urn:schemas-microsoft-com:sharepoint:portal:profile:PreferredName", '%__keywordinput__%') RANK BY COERCION(multiply, 0.01))

OR FREETEXT(#WeightedProps, '%__keywordinput__%') )

AND (%__sourcegroups__%) %__morewhereCondition

関連項目

参照

QueryResultBase クラス
QueryResultBase メンバ
Microsoft.SharePoint.Portal.WebControls 名前空間