Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
web
Type: Microsoft.SharePoint.SPWebA web that is supposed to be an app web.
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. |