Partager via


QueryResultBase.QueryTemplateFromPart, propriété (Microsoft.SharePoint.Portal.WebControls)

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.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
<DefaultValueAttribute("")> _
Public Property QueryTemplateFromPart As String
'Utilisation
Dim instance As QueryResultBase
Dim value As String

value = instance.QueryTemplateFromPart

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

Valeur de la propriété

String that contains the FROM clause of the query template used by Web Parts that derive from this class.

Remarques

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.

Voir aussi

Référence

QueryResultBase, classe
Membres QueryResultBase
Microsoft.SharePoint.Portal.WebControls, espace de noms