Share via


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.String

    A [System.String] that specifies the name of the new service application.

  • serviceApplicationType
    Type: System.Type

    A [System.Type] that specifies the type of 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.

See also

Reference

WordService class

WordService members

Microsoft.Office.Word.Server.Service namespace