Condividi tramite


SPUsageService.EnsureApplication Method

Ensures that a valid usage application exists in this farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function EnsureApplication As SPUsageApplication
'Usage
Dim returnValue As SPUsageApplication

returnValue = SPUsageService.EnsureApplication()
public static SPUsageApplication EnsureApplication()

Return Value

Type: Microsoft.SharePoint.Administration.SPUsageApplication
A SPUsageApplication object.

See Also

Reference

SPUsageService Class

SPUsageService Members

Microsoft.SharePoint.Administration Namespace