AppDefinition complexType
(SharePoint Add-in Manifest)
Applies to: SharePoint Add-ins | SharePoint Foundation 2013 | SharePoint Server 2013
Note
The string app
appears as part of or all of some element, attribute, and file names because SharePoint Add-ins were originally called "apps for SharePoint." To ensure backward compatibility, the schemas have not been changed.
Type information
Information | Location |
---|---|
Namespace | http://schemas.microsoft.com/sharepoint/2012/app/manifest |
Schema file | appmanifest.xsd |
Extension base | None |
Definition
<xs:complexType name="AppDefinition">
<xs:all>
<xs:element name="AppPrincipal" type="AppPrincipalDefinition"
minOccurs="1"
maxOccurs="1"
>
</xs:element>
<xs:element name="AppPermissionRequests" type="AppPermissionRequestsDefinition"
minOccurs="0"
maxOccurs="1"
>
</xs:element>
<xs:element name="Properties" type="PropertiesDefinition"
minOccurs="1"
maxOccurs="1"
>
</xs:element>
<xs:element name="RemoteEndpoints" type="RemoteEndpointsDefinition"
minOccurs="0"
maxOccurs="1"
>
</xs:element>
<xs:element name="AppPrerequisites" type="AppPrerequisiteCollection"
minOccurs="0"
maxOccurs="1"
>
</xs:element>
</xs:all>
<xs:attribute name="ProductID"
type="GUID"
use="required"
/>
<xs:attribute name="Type"
type="TypeDefinition"
use="optional"
/>
<xs:attribute name="Version"
type="VersionDefinition"
use="required"
/>
<xs:attribute name="SharePointMinVersion"
type="VersionDefinition"
use="required"
/>
<xs:attribute name="SharePointMaxVersion"
type="VersionDefinition"
use="optional"
/>
<xs:attribute name="Name"
type="NameDefinition"
use="required"
/>
</xs:complexType>
Elements and attributes
If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.
Child elements
Element |
Type |
Description |
---|---|---|
A list of resources that a SharePoint Add-in needs access to. |
||
A list of prerequisites that a SharePoint Add-in depends on. |
||
The add-in principal information. |
||
Contains information that is global to the add-in. |
||
(Optional) A list of remote endpoints that the SharePoint Add-in may access through SP.WebProxy.invoke(). If this list is empty or not provided, the SharePoint Add-in will not be able to use any remote endpoint through SP.WebProxy.invoke(). |
Attributes
Attribute |
Type |
Required |
Description |
Possible values |
---|---|---|---|---|
**Name** |
required |
The name of the SharePoint Add-in. Name is not localized, and is used in Urls that address add-in artifacts. |
Values of the NameDefinition type. |
|
ProductID |
required |
The unique identifier of the SharePoint Add-in. ProductID does not change between versions. |
Values of the GUID type. |
|
SharePointMaxVersion |
optional |
Optional. The maximum version of SharePoint that the add-in is compatible with. |
Values of the VersionDefinition type. |
|
SharePointMinVersion |
required |
The minimum version of SharePoint that the add-in is compatible with. |
Values of the VersionDefinition type. |
|
**Type** |
optional |
The type of the SharePoint Add-in. |
Values of the TypeDefinition type. |
|
Version |
required |
The version of the SharePoint Add-in. |
Values of the VersionDefinition type. |