Query.Site property
Gets the site from where the search query is run from.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public ReadOnly Property Site As SPSite
Get
'Usage
Dim instance As Query
Dim value As SPSite
value = instance.Site
public SPSite Site { get; }
Property value
Type: Microsoft.SharePoint.SPSite
The site for the search query.