Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
lowestCurrentLevelToUse
Type: Microsoft.Office.Server.Search.Administration.SearchObjectLevelThe level in the hierarchy that will be the lowest owner of the object.
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.