共用方式為


Query.Site Property

Gets the site the search query is executed from.

Namespace:  Microsoft.SharePoint.Search.Query
Assembly:  Microsoft.SharePoint.Search (in Microsoft.SharePoint.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

Remarks

The site where the search query is executed.

See Also

Reference

Query Class

Query Members

Microsoft.SharePoint.Search.Query Namespace