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
name
Type: System.StringThe name of the SPServiceApplication object.
serviceApplicationType
Type: System.TypeThe type of the SPServiceApplication object.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextThe object that manages the Internet Information Services (IIS) application pool, which is used to host the SPServiceApplication object.
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