Share via


MailProfile.EnumAccounts Method

Returns an enumerated list of email accounts associated with the referenced mail profile.

Namespace:  Microsoft.SqlServer.Management.Smo.Mail
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function EnumAccounts As DataTable
'Usage
Dim instance As MailProfile 
Dim returnValue As DataTable 

returnValue = instance.EnumAccounts()
public DataTable EnumAccounts()
public:
DataTable^ EnumAccounts()
member EnumAccounts : unit -> DataTable
public function EnumAccounts() : DataTable

Return Value

Type: System.Data.DataTable
A DataTable object value that contains a table of information about e-mail accounts that are associated with the referenced mail profile.

Examples

Using Database Mail

See Also

Reference

MailProfile Class

Microsoft.SqlServer.Management.Smo.Mail Namespace

Other Resources

Database Mail