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