AccessoryManager.GetAllEmailAccounts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the email accounts on the device.
public:
static IVectorView<EmailAccountInfo ^> ^ GetAllEmailAccounts();
static IVectorView<EmailAccountInfo> GetAllEmailAccounts();
public static IReadOnlyList<EmailAccountInfo> GetAllEmailAccounts();
function getAllEmailAccounts()
Public Shared Function GetAllEmailAccounts () As IReadOnlyList(Of EmailAccountInfo)
Returns
The collection of EmailAccountInfo objects containing the data about the email accounts on the device.
Windows requirements
App capabilities |
accessoryManager
|
Remarks
Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.
An accessory may want to allow filtering for email accounts defined on the phone. This could limit the number of new email notifications that are sent to the accessory. A common use of account filtering would be where a user has both a work and private email account on their phone, but only wants to see notifications on their accessory for incoming emails to their private account.