Partager via


SearchContext.GetContext - Méthode (SearchServiceApplication, Boolean)

Remarque : cette API est désormais obsolète.

Espace de noms :  Microsoft.Office.Server.Search.Administration
Assembly :  Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)

Syntaxe

'Déclaration
<ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")> _
Public Shared Function GetContext ( _
    searchApplication As SearchServiceApplication, _
    cached As Boolean _
) As SearchContext
'Utilisation
Dim searchApplication As SearchServiceApplication
Dim cached As Boolean
Dim returnValue As SearchContext

returnValue = SearchContext.GetContext(searchApplication, _
    cached)
[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public static SearchContext GetContext(
    SearchServiceApplication searchApplication,
    bool cached
)

Paramètres

Valeur renvoyée

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

Voir aussi

Référence

SearchContext classe

SearchContext - Membres

GetContext - Surcharge

Microsoft.Office.Server.Search.Administration - Espace de noms