다음을 통해 공유


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