다음을 통해 공유


SearchQueryAndSiteSettingsService.CreateApplication Method

Creates a new SPServiceApplication object using the specified parameters, or returns the existing application with the specified name.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function CreateApplication ( _
    name As String, _
    serviceApplicationType As Type, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplication
'Usage
Dim instance As SearchQueryAndSiteSettingsService
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

Return Value

Type: Microsoft.SharePoint.Administration.SPServiceApplication
The Search service application.

Implements

IServiceAdministration.CreateApplication(String, Type, SPServiceProvisioningContext)

Remarks

This method returns an SPServiceApplication object that is created with a default topology if the specified SPServiceApplication is not found.

See Also

Reference

SearchQueryAndSiteSettingsService Class

SearchQueryAndSiteSettingsService Members

Microsoft.Office.Server.Search.Administration Namespace