SPSite.SearchServiceInstance Property

Gets an SPServiceInstance object that represents an instance of the SharePoint Search service that is associated with the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public ReadOnly Property SearchServiceInstance As SPServiceInstance
    Get
'Usage
Dim instance As SPSite
Dim value As SPServiceInstance

value = instance.SearchServiceInstance
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public SPServiceInstance SearchServiceInstance { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPServiceInstance
An SPServiceInstance object that represents the SharePoint Search service instance.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace