Partager via


IHostedEmailAdaptor.GetAllAccounts Method ()

 

Retrieves the account information for all accounts on the system.

Namespace:   Microsoft.WindowsServerSolutions.HostedEmail
Assembly:  Wssg.HostedEmailBase (in Wssg.HostedEmailBase.dll)

Syntax

EmailAccountInfo[] GetAllAccounts()
array<EmailAccountInfo^>^ GetAllAccounts()
Function GetAllAccounts As EmailAccountInfo()

Return Value

Type: Microsoft.WindowsServerSolutions.HostedEmail.EmailAccountInfo[]

A collection of EmailAccountInfo that contain the email account information. Will return null if there are no accounts.

Remarks

This method is called by BeginGetAllAccounts and GetAllAccounts.

Examples

The following code implements the EmailAccountInfo method. For the complete code, see Quickstart: Creating a Hosted Email Adapter.

public EmailAccountInfo[] GetAllAccounts()
{
    return EmailService.GetAllAccounts();
}

See Also

IHostedEmailAdaptor Interface
Microsoft.WindowsServerSolutions.HostedEmail Namespace

Return to top