Office.MailboxEnums.OpenLocation enum

アドインがデータにアクセスする場所を指定します。

注釈

適用可能な Outlook モード: Compose、読み取り

重要: この列挙型は、Android 版 Outlook およびバージョン 4.2443.0 以降の iOS 版でのみサポートされます。 モバイル デバイス上の Outlook でサポートされている API の詳細については、「モバイル デバイス上の Outlook でサポートされている Outlook JavaScript API」を参照してください

使用元

// 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.");
}

フィールド

AccountDocument

アドイン内のアカウントに関連付けられている場所。

Camera

デバイスのカメラ。

Local

デバイス上のローカル ストレージ。

OnedriveForBusiness

OneDrive for Business。

重要: OneDrive Personal の場合は、[その他] を使用します。

Other

その他のクラウド ストレージ プロバイダー (OneDrive Personal など)。

PhotoLibrary

デバイスのフォト ライブラリ。

SharePoint

SharePoint。 SharePoint Online とオンプレミスの SharePoint の両方が含まれます (Microsoft Entra ID アカウントでアクセスした場合)。