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
serverContext
Type: Microsoft.Office.Server.ServerContextUm objeto ServerContext que representa o contexto de servidor para o provedor de serviços compartilhados.
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.