QueryResultBase.QueryTemplateSelectPart Property

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.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public Property QueryTemplateSelectPart As String
    Get
    Set
'Usage
Dim instance As QueryResultBase
Dim value As String

value = instance.QueryTemplateSelectPart

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

Property Value

Type: System.String
String that contains the SELECT 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 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"

See Also

Reference

QueryResultBase Class

QueryResultBase Members

Microsoft.SharePoint.Portal.WebControls Namespace