SPWeb.LoadAndInstallApp method
SharePoint 2013
Uploads and installs an app package.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)] [ClientCallableAttribute] [ClientCallableMethodAttribute(ReturnObjectIdentity = true)] public SPAppInstance LoadAndInstallApp( Stream appPackageStream )
Parameters
- appPackageStream
- Type: System.IO.Stream
The stream of the app package.
Return value
Type: Microsoft.SharePoint.Administration.SPAppInstanceThe instance of the created application.
| Exception | Condition |
|---|---|
| ArgumentNullException | The AppPackageStream parameter is null. |