SPUsageService.IServiceAdministration.CreateApplication 方法
创建新的应用程序使用,或者如果已经存在,则返回现有的应用程序的给定name 。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Private Function CreateApplication ( _
name As String, _
serviceApplicationType As Type, _
provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplication Implements IServiceAdministration.CreateApplication
用法
Dim instance As SPUsageService
Dim name As String
Dim serviceApplicationType As Type
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplication
returnValue = CType(instance, IServiceAdministration).CreateApplication(name, _
serviceApplicationType, provisioningContext)
SPServiceApplicationIServiceAdministration.CreateApplication(
string name,
Type serviceApplicationType,
SPServiceProvisioningContext provisioningContext
)
参数
name
类型:System.String要创建的使用率应用程序的名称。
serviceApplicationType
类型:System.Type使用应用程序创建的类型。
provisioningContext
类型:Microsoft.SharePoint.Administration.SPServiceProvisioningContext设置为新应用程序的上下文数据。
返回值
类型:Microsoft.SharePoint.Administration.SPServiceApplication
新创建的SPServiceApplication对象,或者如果已存在一个具有相同名称的现有应用程序对象。
实现
IServiceAdministration.CreateApplication(String, Type, SPServiceProvisioningContext)