Compartilhar via


SearchContext.GetContext method (ServerContext)

NOTE: This API is now obsolete.

Obtém a instância de contexto de pesquisa para o objeto ServerContext .

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

Syntax

'Declaração
<ObsoleteAttribute("This method is deprecated. Use GetContext(SearchServiceApplication app).")> _
Public Shared Function GetContext ( _
    serverContext As ServerContext _
) As SearchContext
'Uso
Dim serverContext As ServerContext
Dim returnValue As SearchContext

returnValue = SearchContext.GetContext(serverContext)
[ObsoleteAttribute("This method is deprecated. Use GetContext(SearchServiceApplication app).")]
public static SearchContext GetContext(
    ServerContext serverContext
)

Parâmetros

Valor retornado

Type: Microsoft.Office.Server.Search.Administration.SearchContext
Um objeto SearchContext que representa o contexto de pesquisa para o provedor de serviços compartilhados.

Comentários

Para obter mais informações sobre a classe SearchContext e o modelo de objeto de administração SharePoint Enterprise Search , consulte Getting Started with the Search Administration Object Model e How to: Return the Search Context for the Search Service Provider.

Ver também

Referência

SearchContext class

SearchContext members

GetContext overload

Microsoft.Office.Server.Search.Administration namespace