Share via


AccessoryManager.EnableEmailNotificationEmailAccount(String) Method

Definition

Enables email notifications for specified email account.

public:
 static void EnableEmailNotificationEmailAccount(Platform::String ^ emailAccount);
 static void EnableEmailNotificationEmailAccount(winrt::hstring const& emailAccount);
public static void EnableEmailNotificationEmailAccount(string emailAccount);
function enableEmailNotificationEmailAccount(emailAccount)
Public Shared Sub EnableEmailNotificationEmailAccount (emailAccount As String)

Parameters

emailAccount
String

Platform::String

winrt::hstring

String containing the name of the email account.

Windows requirements

App capabilities
accessoryManager

Remarks

Important

When the phone is pin locked, email notifications may come in with no information due to Data Protection Under pin Lock (DPUL). This feature is enabled by the end-user.

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

Applies to