BdcService.CreateApplication method (String, Type, SPServiceProvisioningContext)
Creates a service application with the given name using the application pool of the provided provisioning context.
Namespace: Microsoft.SharePoint.BusinessData.SharedService
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function CreateApplication ( _
name As String, _
serviceApplicationType As Type, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplication
'Usage
Dim instance As BdcService
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 service application.
serviceApplicationType
Type: System.TypeThe type of service application, which must be BdcServiceApplication.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextThe context to get the application pool from, which will be used to run the service application.
Return value
Type: Microsoft.SharePoint.Administration.SPServiceApplication
A new BdcServiceApplication.
Remarks
This method supports only BdcServiceApplication objects.