共用方式為


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

    若要建立的使用狀況應用程式的類型。

傳回值

Type: Microsoft.SharePoint.Administration.SPServiceApplication
如果已經存在一個相同名稱的現有 application 物件或新建的SPServiceApplication物件。

Implements

IServiceAdministration.CreateApplication(String, Type, SPServiceProvisioningContext)

請參閱

參照

SPUsageService class

SPUsageService members

Microsoft.SharePoint.Administration namespace