Set element
The meaning of this element depends on where it's used in the manifest.
When used in the base manifest (that is, the grandparent <Requirements> element is a direct child of OfficeApp), the <Set> element specifies a requirement set from the Office JavaScript API that your Office Add-in needs in order to be activated by Office.
Add-in type: Content, Task pane, Mail
Specifies a requirement set from the Office JavaScript API that must be supported by the Office version and platform (such as Windows, Mac, web, and iOS or iPad) in order for the VersionOverrides to take effect.
Add-in type: Task pane, Mail
Valid only in these VersionOverrides schemas:
- Same as the grandparent Requirements element.
Associated with these requirement sets:
- Same as the grandparent Requirements element.
<Set Name="string" MinVersion="n .n">
Attribute | Type | Required | Description |
---|---|---|---|
Name | string | Yes | The name of a requirement set. |
MinVersion | string | No | Specifies the minimum version of the API set required by your add-in. Overrides the value of DefaultMinVersion, if it is specified in the parent Sets element. |
Certain requirement sets can't be declared in this element of the manifest; they're listed in the following table. In those cases, you should do a runtime check to determine if the user's version of Office supports your target requirement set. To learn more about how to do so, see Runtime checks for method and requirement set support.
Requirement set | Affected hosts |
---|---|
ExcelApiOnline 1.1 | Excel |
IdentityApi 1.3 | Outlook |
WordApiHiddenDocument 1.3 | Word |
WordApiOnline 1.1 | Word |
Preview APIs | All hosts |
For more information about requirement sets, see Office versions and requirement sets.
For more information about the MinVersion attribute of the <Set> element and the DefaultMinVersion attribute of the <Sets> element, see Specify which Office versions and platforms can host your add-in.
Office Add-ins feedback
Office Add-ins is an open source project. Select a link to provide feedback: