The root element in the manifest of an Office Add-in.
Add-in type: Content, Task pane, Mail
Syntax
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type= ["ContentApp" |"MailApp"| "TaskPaneApp"]>
...
</OfficeApp>
Contained in
None
Must contain
The <OfficeApp> element must contain the following child elements depending on the add-in type.
| Element | Content | TaskPane | |
|---|---|---|---|
| Id | Yes | Yes | Yes |
| Version | Yes | Yes | Yes |
| ProviderName | Yes | Yes | Yes |
| DefaultLocale | Yes | Yes | Yes |
| DefaultSettings | Yes | No | Yes |
| DisplayName | Yes | Yes | Yes |
| Description | Yes | Yes | Yes |
| FormSettings | No | Yes | No |
| Permissions | Yes | No | Yes |
| Rule | No | Yes | No |
Can contain
The <OfficeApp> element can contain the following child elements depending on the add-in type.
| Element | Content | TaskPane | |
|---|---|---|---|
| AlternateId | Yes | Yes | Yes |
| IconUrl* | Yes | Yes | Yes |
| HighResolutionIconUrl* | Yes | Yes | Yes |
| SupportUrl | Yes | Yes | Yes |
| AppDomains | Yes | Yes | Yes |
| Hosts | Yes | Yes | Yes |
| Requirements | Yes | Yes | Yes |
| AllowSnapshot | Yes | No | No |
| Permissions | No | Yes | No |
| DisableEntityHighlighting | No | Yes | No |
| Dictionary | No | No | Yes |
| VersionOverrides | Yes | Yes | Yes |
| ExtendedOverrides | No | No | Yes |
Important
* The IconUrl and HighResolutionIconUrl elements are formally optional, but are now required for add-ins distributed in AppSource.
Attributes
| Attribute | Description |
|---|---|
| xmlns | Defines the Office Add-in manifest namespace and schema version. This attribute should always be set to "http://schemas.microsoft.com/office/appforoffice/1.1" |
| xmlns:xsi | Defines the XMLSchema instance. This attribute should always be set to "http://www.w3.org/2001/XMLSchema-instance" |
| xsi:type | Defines the kind of Office Add-in. This attribute should be set to one of: "ContentApp", "MailApp", or "TaskPaneApp" |
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Office Add-ins