Partager via


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

The QueryTemplateSelectPart property of the QueryResultBase class gets or sets the SELECT 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)> _
<DefaultValueAttribute("")> _
<BrowsableAttribute(False)> _
Public Property QueryTemplateSelectPart As String
'Utilisation
Dim instance As QueryResultBase
Dim value As String

value = instance.QueryTemplateSelectPart

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

Valeur de la propriété

String that contains the SELECT 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 SELECT clause. For example, the SearchResults class sets this property to following string:

SELECT

"DAV:href",

"DAV:displayname",

"DAV:contentclass",

"DAV:getlastmodified",

"DAV:getcontentlength",

"DAV:iscollection",

"urn:schemas-microsoft-com:sharepoint:portal:profile:WorkPhone",

"urn:schemas-microsoft-com:sharepoint:portal:profile:WorkEmail",

"urn:schemas-microsoft-com:sharepoint:portal:profile:Title",

"urn:schemas-microsoft-com:sharepoint:portal:profile:Department",

"urn:schemas.microsoft.com:fulltextqueryinfo:PictureURL",

"urn:schemas-microsoft-com:office:office#Author",

"urn:schemas.microsoft.com:fulltextqueryinfo:description",

"urn:schemas.microsoft.com:fulltextqueryinfo:rank",

"urn:schemas.microsoft.com:fulltextqueryinfo:sitename",

"urn:schemas.microsoft.com:fulltextqueryinfo:displaytitle",

"urn:schemas-microsoft-com:publishing:Category",

"urn:schemas-microsoft-com:office:office#ows_CrawlType",

"urn:schemas-microsoft-com:office:office#ows_ListTemplate",

"urn:schemas-microsoft-com:office:office#ows_SiteName",

"urn:schemas-microsoft-com:office:office#ows_ImageWidth",

"urn:schemas-microsoft-com:office:office#ows_ImageHeight",

"DAV:getcontenttype",

"urn:schemas-microsoft-com:sharepoint:portal:area:Path",

"urn:schemas-microsoft-com:sharepoint:portal:area:CategoryUrlNavigation",

"urn:schemas-microsoft-com:publishing:CategoryTitle",

"urn:schemas.microsoft.com:fulltextqueryinfo:sdid",

"urn:schemas-microsoft-com:sharepoint:portal:objectid"

Voir aussi

Référence

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