Share via


AccessoryManager.GetFolders(String) Method

Definition

Gets a list of email folders that are defined on the phone.

public:
 static IVectorView<EmailFolderInfo ^> ^ GetFolders(Platform::String ^ emailAccount);
 static IVectorView<EmailFolderInfo> GetFolders(winrt::hstring const& emailAccount);
public static IReadOnlyList<EmailFolderInfo> GetFolders(string emailAccount);
function getFolders(emailAccount)
Public Shared Function GetFolders (emailAccount As String) As IReadOnlyList(Of EmailFolderInfo)

Parameters

emailAccount
String

Platform::String

winrt::hstring

The email account where the folders are defined.

Returns

A collection of EmailFolderInfo objects.

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