SP.AppInstance object
Represents an SP.App object (sp.js) object installed to a specific Web site.
Last modified: March 09, 2015
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var object = new SP.AppInstance()
The AppInstance object has the following members.
Constructor
The AppInstance object has the following constructor.
|
Constructor |
Description |
|---|---|
|
Initializes a new instance of the SP.AppInstance object. |
Methods
The AppInstance object has the following methods.
|
Method |
Description |
|---|---|
|
Cancels each currently running lifecycle job for an app instance. |
|
|
Retrieves the details of an error the app instance has encountered. |
|
|
Retrieves the version of the app that is being upgraded from during an upgrade. |
|
|
Starts an install on this app instance. |
|
|
Restarts all jobs for this app instance if there are any. |
|
|
Removes app instances that are either initialized or installed. |
|
|
Uploads a version of an app, and then upgrades the app instance to that version. |
Properties
The AppInstance object has the following properties.
|
Property |
Description |
|---|---|
|
Gets the encoded claim value for the app principal identifier associated with the app instance. |
|
|
Gets the absolute URL of the site created during the installation of the app instance that is used to host SharePoint components. |
|
|
Gets the unique identifier of the SP.AppInstance object object. |
|
|
Gets whether the app instance is in an error state. |
|
|
Gets the base URL of the remote system deployed during the installation of this app instance. |
|
|
Gets the settings page URL of the current app instance. |
|
|
Gets he SharePoint site containing the Web where this app instance is installed. |
|
|
Gets the start page of the app instance. |
|
|
Gets the lifecycle of an app instance based on the constants defined by the SP.AppInstanceStatus enumeration enumeration. |
|
|
Gets the title of the SharePoint app. |
|
|
Gets the identifier of the web where this app is installed. |