Share via


AccessoryManager.EnableEmailNotificationFolderFilter Method

Definition

Enables email notifications for specified folders in specified account.

public:
 static void EnableEmailNotificationFolderFilter(Platform::String ^ emailAccount, IVectorView<Platform::String ^> ^ folders);
 static void EnableEmailNotificationFolderFilter(winrt::hstring const& emailAccount, IVectorView<winrt::hstring> const& folders);
public static void EnableEmailNotificationFolderFilter(string emailAccount, IReadOnlyList<string> folders);
function enableEmailNotificationFolderFilter(emailAccount, folders)
Public Shared Sub EnableEmailNotificationFolderFilter (emailAccount As String, folders As IReadOnlyList(Of String))

Parameters

emailAccount
String

Platform::String

winrt::hstring

The email account to enable email notifications for.

folders

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

The folders in the email account that the user wants to monitor.

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.

Applies to