共用方式為


SPApp.CreateAppInstance method (SPWeb, CultureInfo)

建立此應用程式的指定的網站和文化特性的執行個體。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function CreateAppInstance ( _
    web As SPWeb, _
    installationLocale As CultureInfo _
) As Guid
'用途
Dim instance As SPApp
Dim web As SPWeb
Dim installationLocale As CultureInfo
Dim returnValue As Guid

returnValue = instance.CreateAppInstance(web, _
    installationLocale)
public Guid CreateAppInstance(
    SPWeb web,
    CultureInfo installationLocale
)

參數

傳回值

Type: System.Guid
建立的SPAppInstance物件也會儲存在Id屬性的識別碼。

備註

使用SPAppCatalog類別與此方法傳回的識別碼,可以擷取新的應用程式執行個體。

請參閱

參照

SPApp class

SPApp members

CreateAppInstance overload

Microsoft.SharePoint.Administration namespace