Share via


StateService.TryGetService method

Used by Microsoft Project 2010 to determine if the StateService has already been provisioned. For more information, contact us.

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

Syntax

'Declaration
Public Shared Function TryGetService ( _
    farm As SPFarm _
) As StateService
'Usage
Dim farm As SPFarm
Dim returnValue As StateService

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

Parameters

Return value

Type: Microsoft.Office.Server.Administration.StateService
Returns StateService.

See also

Reference

StateService class

StateService members

Microsoft.Office.Server.Administration namespace