Compartilhar via


SearchContext.GetContext method (String)

NOTE: This API is now obsolete.

Obtém a instância de contexto de pesquisa para o nome do aplicativo de pesquisa especificado.

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

Syntax

'Declaração
<ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")> _
Public Shared Function GetContext ( _
    searchApplicationName As String _
) As SearchContext
'Uso
Dim searchApplicationName As String
Dim returnValue As SearchContext

returnValue = SearchContext.GetContext(searchApplicationName)
[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public static SearchContext GetContext(
    string searchApplicationName
)

Parâmetros

  • searchApplicationName
    Type: System.String

    Uma seqüência de caracteres especificando o nome do aplicativo de pesquisa.

Valor retornado

Type: Microsoft.Office.Server.Search.Administration.SearchContext
Um objeto SearchContext .

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