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 では、OfficeOnlineアドインが Outlook on the web または新しい Outlook on Windows (プレビュー) で実行されている場合に返されます。

PC

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

Universal

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