Office.PlatformType enum
Office アプリケーションが実行されている OS またはその他のプラットフォームを指定します。
注釈
重要: Outlook では、この列挙型はメールボックス要件セット 1.5 以降で使用できます。
例
const contextInfo = Office.context.diagnostics;
const platformType: Office.PlatformType = contextInfo.platform;
console.log("Platform: " + platformType);
フィールド
| Android | プラットフォームは Android デバイスです。 |
| iOS | プラットフォームは iOS デバイスです。 |
| Mac | プラットフォームは Mac です。 |
| OfficeOnline | プラットフォームは (ブラウザーで) Office on the web。
重要: Outlook では、Outlook on the webまたは新しい Outlook on Windows でアドインが実行されている場合、 |
| PC | プラットフォームは PC (Windows) です。 |
| Universal | プラットフォームは WinRT です。 |