SPApp.CreateAppInstance method (SPWeb)

Creates an instance of an app at the site specified by the web parameter.

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

Syntax

'Declaration
Public Function CreateAppInstance ( _
    web As SPWeb _
) As Guid
'Usage
Dim instance As SPApp
Dim web As SPWeb
Dim returnValue As Guid

returnValue = instance.CreateAppInstance(web)
public Guid CreateAppInstance(
    SPWeb web
)

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