Office.MailboxEnums.OpenLocation enum
Gibt den Speicherort an, von dem aus ein Add-In auf Daten zugreifen möchte.
Hinweise
Anwendbarer Outlook-Modus: Compose, Read
Wichtig: Diese Enumeration wird nur in Outlook auf Android und iOS ab Version 4.2443.0 unterstützt. Weitere Informationen zu APIs, die in Outlook auf Mobilgeräten unterstützt werden, finden Sie unter Outlook-JavaScript-APIs, die in Outlook auf Mobilgeräten unterstützt werden.
Verwendet von
Beispiele
// Checks if the add-in can access data from the device's photo library.
const isOpenFromPhotoLibraryAllowed = Office.context.mailbox.getIsOpenFromLocationAllowed(Office.MailboxEnums.OpenLocation.PhotoLibrary);
if (isOpenFromPhotoLibraryAllowed) {
console.log("Access to the photo library is allowed.");
// Do something.
} else {
console.log("Access to the photo library isn't allowed.");
}
Felder
| AccountDocument | Ein Standort, der einem Konto innerhalb eines Add-Ins zugeordnet ist. |
| Camera | Die Kamera des Geräts. |
| Local | Lokaler Speicher auf einem Gerät. |
| OnedriveForBusiness | OneDrive for Business. Wichtig: Verwenden Sie für OneDrive Personal "OTHER". |
| Other | Andere Cloudspeicheranbieter, einschließlich OneDrive Personal |
| PhotoLibrary | Die Fotobibliothek des Geräts. |
| SharePoint | SharePoint. Umfasst sowohl SharePoint Online als auch SharePoint lokal (wenn mit einem Microsoft Entra ID Konto zugegriffen wird). |