共用方式為


QueryProperties.SiteId Property

Gets or sets the identifier (ID) for the site associated with the query.

Namespace:  Microsoft.SharePoint.Search.Query
Assembly:  Microsoft.SharePoint.Search (in Microsoft.SharePoint.Search.dll)

Syntax

'Declaration
Public Property SiteId As Guid
    Get
    Set
'Usage
Dim instance As QueryProperties
Dim value As Guid

value = instance.SiteId

instance.SiteId = value
public Guid SiteId { get; set; }

Property Value

Type: System.Guid
A Guid representing the site ID.

See Also

Reference

QueryProperties Class

QueryProperties Members

Microsoft.SharePoint.Search.Query Namespace