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 web 版 (。

重要提示:在 Outlook 中,OfficeOnline如果加载项在 Outlook 网页版 或 Windows (预览版中的新 Outlook 中运行,则返回)

PC

该平台是电脑 (Windows) 。

Universal

平台为 WinRT。