共用方式為


SPSite.SearchServiceInstance property

取得SPServiceInstance物件,表示相關聯的網站集合 SharePoint 搜尋服務執行個體。

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

Syntax

'宣告
Public ReadOnly Property SearchServiceInstance As SPServiceInstance
    Get
'用途
Dim instance As SPSite
Dim value As SPServiceInstance

value = instance.SearchServiceInstance
public SPServiceInstance SearchServiceInstance { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPServiceInstance
SPServiceInstance 物件,表示 SharePoint 搜尋服務執行個體。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace