SPUsageService.IServiceAdministration.CreateApplication method
建立新的使用狀況應用程式,或如果已存在,則會傳回現有的應用程式的特定name 。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: System.String若要建立的使用狀況應用程式的名稱。
serviceApplicationType
Type: System.Type若要建立的使用狀況應用程式的類型。
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContext新的應用程式的佈建快顯資料。
傳回值
Type: Microsoft.SharePoint.Administration.SPServiceApplication
如果已經存在一個相同名稱的現有 application 物件或新建的SPServiceApplication物件。
Implements
IServiceAdministration.CreateApplication(String, Type, SPServiceProvisioningContext)