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
)
參數
web
Type: Microsoft.SharePoint.SPWeb若要建立應用程式上網站。
installationLocale
Type: System.Globalization.CultureInfo若要建立的應用程式的文化特性。
傳回值
Type: System.Guid
建立的SPAppInstance物件也會儲存在Id屬性的識別碼。
備註
使用SPAppCatalog類別與此方法傳回的識別碼,可以擷取新的應用程式執行個體。