Share via


SPUsageService.IServiceAdministration.CreateApplication method

Creates a new usage application or returns an existing application of the given name if it already exists.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Private Function CreateApplication ( _
    name As String, _
    serviceApplicationType As Type, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplication Implements IServiceAdministration.CreateApplication
'Usage
Dim instance As SPUsageService
Dim name As String
Dim serviceApplicationType As Type
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplication

returnValue = CType(instance, IServiceAdministration).CreateApplication(name, _
    serviceApplicationType, provisioningContext)
SPServiceApplication IServiceAdministration.CreateApplication(
    string name,
    Type serviceApplicationType,
    SPServiceProvisioningContext provisioningContext
)

Parameters

  • name
    Type: System.String

    Name of the usage application to create.

  • serviceApplicationType
    Type: System.Type

    Type of usage application to create.

Return value

Type: Microsoft.SharePoint.Administration.SPServiceApplication
The newly created SPServiceApplication object or an existing application object if one of the same name already exists.

Implements

IServiceAdministration.CreateApplication(String, Type, SPServiceProvisioningContext)

See also

Reference

SPUsageService class

SPUsageService members

Microsoft.SharePoint.Administration namespace