SPUsageService.EnsureApplication method
Ensures that a valid usage application exists in this farm.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
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.