SPWeb.LoadAndInstallApp method

Uploads and installs an app package.

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

Syntax

'Declaration
Public Function LoadAndInstallApp ( _
    appPackageStream As Stream _
) As SPAppInstance
'Usage
Dim instance As SPWeb
Dim appPackageStream As Stream
Dim returnValue As SPAppInstance

returnValue = instance.LoadAndInstallApp(appPackageStream)
public SPAppInstance LoadAndInstallApp(
    Stream appPackageStream
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.SPAppInstance
The instance of the created application.

Exceptions

Exception Condition
ArgumentNullException

The AppPackageStream parameter is a null reference (Nothing in Visual Basic).

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace