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.
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
appPackageStream
Type: System.IO.StreamThe stream of the app package.
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). |