QueryResultBase.QueryTemplateFromPart Property
The QueryTemplateFromPart property of the QueryResultBase class gets or sets the FROM clause of the query template used by Web Parts that derive from this class.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property QueryTemplateFromPart As String
Get
Set
'Usage
Dim instance As QueryResultBase
Dim value As String
value = instance.QueryTemplateFromPart
instance.QueryTemplateFromPart = value
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
public string QueryTemplateFromPart { get; set; }
Property Value
Type: System.String
String that contains the FROM clause of the query template used by Web Parts that derive from this class.
Remarks
Override this property to get or set default values or placeholders for the FROM clause. For example, the SearchResults class sets this property to " %__scopecatalogs__%," where the " %__scopecatalogs__%" sub-string is replaced by query values at runtime.