Share via


MailProfile.EnumPrincipals Method

Returns an enumerated list of security principals 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 EnumPrincipals As DataTable
'Usage
Dim instance As MailProfile 
Dim returnValue As DataTable 

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

Return Value

Type: System.Data.DataTable
A DataTable object value that contains a table of information about security principals 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