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.StringName of the usage application to create.
serviceApplicationType
Type: System.TypeType of usage application to create.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextProvisioning context data for the new application.
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)