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 でアドが実行されている場合、OfficeOnline が返されます。

PC

プラットフォームは PC (Windows) です。

Universal

プラットフォームは WinRT です。