-
Notifications
You must be signed in to change notification settings - Fork 63
/
office.hosttype.yml
47 lines (45 loc) · 1.51 KB
/
office.hosttype.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### YamlMime:TSEnum
name: Office.HostType
uid: 'office!Office.HostType:enum'
package: office!
fullName: Office.HostType
summary: Specifies the Office application in which the add-in is running.
remarks: |-
**Important**: In Outlook, this enum is available from Mailbox requirement set 1.5.
#### Examples
```TypeScript
const contextInfo = Office.context.diagnostics;
const hostType: Office.HostType = contextInfo.host;
console.log("Office application: " + hostType);
```
isPreview: false
isDeprecated: false
fields:
- name: Access
uid: 'office!Office.HostType.Access:member'
package: office!
summary: The Office application is Microsoft Access.
- name: Excel
uid: 'office!Office.HostType.Excel:member'
package: office!
summary: The Office application is Microsoft Excel.
- name: OneNote
uid: 'office!Office.HostType.OneNote:member'
package: office!
summary: The Office application is Microsoft OneNote.
- name: Outlook
uid: 'office!Office.HostType.Outlook:member'
package: office!
summary: The Office application is Microsoft Outlook.
- name: PowerPoint
uid: 'office!Office.HostType.PowerPoint:member'
package: office!
summary: The Office application is Microsoft PowerPoint.
- name: Project
uid: 'office!Office.HostType.Project:member'
package: office!
summary: The Office application is Microsoft Project.
- name: Word
uid: 'office!Office.HostType.Word:member'
package: office!
summary: The Office application is Microsoft Word.