Share via


StateService.TryGetService - Méthode

Utilisé par Microsoft Project 2010 pour déterminer si le StateService a déjà été mise en service. Pour plus d’informations, contactez-nous.

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

Syntaxe

'Déclaration
Public Shared Function TryGetService ( _
    farm As SPFarm _
) As StateService
'Utilisation
Dim farm As SPFarm
Dim returnValue As StateService

returnValue = StateService.TryGetService(farm)
public static StateService TryGetService(
    SPFarm farm
)

Paramètres

Valeur renvoyée

Type : Microsoft.Office.Server.Administration.StateService
Cette propriété renvoie StateService.

Voir aussi

Référence

StateService classe

StateService - Membres

Microsoft.Office.Server.Administration - Espace de noms