Office.PlatformType enum

指定运行 Office 应用程序的操作系统或其他平台。

注解

重要提示:在 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 网页版或新的 Outlook on Windows 中运行,则返回。

PC

平台是 PC (Windows) 。

Universal

平台是 WinRT。