SearchObjectOwner constructor (SearchObjectLevel)

Creates an SearchObjectOwner based on current SharePoint context, at the level specified.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub New ( _
    lowestCurrentLevelToUse As SearchObjectLevel _
)
'Usage
Dim lowestCurrentLevelToUse As SearchObjectLevel

Dim instance As New SearchObjectOwner(lowestCurrentLevelToUse)
public SearchObjectOwner(
    SearchObjectLevel lowestCurrentLevelToUse
)

Parameters

Remarks

Depends on SPContext.Current being non-null and holding a non-null reference to the desired owner. For instance if SearchObjectLevel.SPWeb is supplied both SPContext.Current and SPContext.Current.Web must be non-null. When there isn't a valid SPContext.Current, such as in command line applications you should use the contructor that takes a SPWeb instead.

See also

Reference

SearchObjectOwner class

SearchObjectOwner members

SearchObjectOwner overload

Microsoft.Office.Server.Search.Administration namespace