SPApp.CreateAppInstance method (SPWeb, CultureInfo)

Creates an instance of this app for the specified web site and culture.

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

Syntax

'Declaration
Public Function CreateAppInstance ( _
    web As SPWeb, _
    installationLocale As CultureInfo _
) As Guid
'Usage
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
)

Parameters

Return value

Type: System.Guid
The identifier of the created SPAppInstance object which is also stored in the Id property.

Remarks

The new app instance can be retrieved by using the SPAppCatalog class and the identifier returned from this method.

See also

Reference

SPApp class

SPApp members

CreateAppInstance overload

Microsoft.SharePoint.Administration namespace