Share via


SPAppCatalog.GetAppInstanceForAppWeb method

Gets the app instance for a given web.

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

Syntax

'Declaration
Public Shared Function GetAppInstanceForAppWeb ( _
    web As SPWeb _
) As SPAppInstance
'Usage
Dim web As SPWeb
Dim returnValue As SPAppInstance

returnValue = SPAppCatalog.GetAppInstanceForAppWeb(web)
public static SPAppInstance GetAppInstanceForAppWeb(
    SPWeb web
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.SPAppInstance
The app instance for the web.

Exceptions

Exception Condition
System.ArgumentNullException

The web parameter value is null.

System.ArgumentException

The web parameter value is not an app web.

See also

Reference

SPAppCatalog class

SPAppCatalog members

Microsoft.SharePoint.Administration namespace