WordService.CreateApplication method
Creates a new service application.
Namespace: Microsoft.Office.Word.Server.Service
Assembly: Microsoft.Office.Word.Server (in Microsoft.Office.Word.Server.dll)
Syntax
'Declaration
Public Function CreateApplication ( _
name As String, _
serviceApplicationType As Type, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplication
'Usage
Dim instance As WordService
Dim name As String
Dim serviceApplicationType As Type
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplication
returnValue = instance.CreateApplication(name, _
serviceApplicationType, provisioningContext)
public SPServiceApplication CreateApplication(
string name,
Type serviceApplicationType,
SPServiceProvisioningContext provisioningContext
)
Parameters
name
Type: System.StringA [System.String] that specifies the name of the new service application.
serviceApplicationType
Type: System.TypeA [System.Type] that specifies the type of the new service application.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextA SPServiceProvisioningContext that specifies the default provisioning parameters for the new service application.
Return value
Type: Microsoft.SharePoint.Administration.SPServiceApplication
Returns SPServiceApplication.
Implements
IServiceAdministration.CreateApplication(String, Type, SPServiceProvisioningContext)
Remarks
If the service application already exists, this method returns the existing WordServiceApplication.