Office.MailboxEnums.SaveLocation enum
指定加载项要保存数据的位置。
注解
适用的 Outlook 模式:Compose、Read
重要提示:从版本 4.2443.0 开始,仅在 Android 版 Outlook 和 iOS 上支持此枚举。 若要详细了解移动设备上的 Outlook 支持的 API,请参阅移动设备上的 Outlook 支持的 Outlook JavaScript API。
使用方
示例
// Checks if the add-in can save data to SharePoint.
const isSaveToSharePointAllowed = Office.context.mailbox.getIsSaveToLocationAllowed(Office.MailboxEnums.SaveLocation.SharePoint);
if (isSaveToSharePointAllowed) {
console.log("Saving to SharePoint is allowed.");
// Do something.
} else {
console.log("Saving to SharePoint isn't allowed.");
}
字段
| AccountDocument | 与加载项中的帐户关联的位置。 |
| Box | 框。 |
| Dropbox | Dropbox。 |
| GoogleDrive | Google 云端硬盘。 |
| Local | 设备上的本地存储。 |
| OnedriveForBusiness | OneDrive for Business。 重要提示:对于 OneDrive 个人版,请使用“其他”。 |
| Other | 其他云存储提供商,包括 OneDrive 个人版。 |
| PhotoLibrary | 设备的照片图库。 |
| SharePoint | SharePoint。 如果使用 Microsoft Entra ID 帐户) 访问,则包括 SharePoint Online 和 SharePoint 本地 (。 |