Office.HostType enum
アドインが実行されている Office アプリケーションを指定します。
注釈
重要: Outlook では、この列挙型はメールボックス要件セット 1.5 以降で使用できます。
例
const contextInfo = Office.context.diagnostics;
const hostType: Office.HostType = contextInfo.host;
console.log("Office application: " + hostType);
フィールド
| Access | Office アプリケーションは Microsoft Access です。 |
| Excel | Office アプリケーションは Microsoft Excel です。 |
| OneNote | Office アプリケーションは Microsoft OneNote です。 |
| Outlook | Office アプリケーションは Microsoft Outlook です。 |
| PowerPoint | Office アプリケーションは Microsoft PowerPointです。 |
| Project | Office アプリケーションは Microsoft Project です。 |
| Word | Office アプリケーションは Microsoft Wordです。 |