Share via


MailAccount.MailServers Property

Represents a collection of MailServer objects. Each MailServer object represents a mail server associated with the mail account.

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

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(MailServer))> _
Public ReadOnly Property MailServers As MailServerCollection 
    Get
'Usage
Dim instance As MailAccount 
Dim value As MailServerCollection 

value = instance.MailServers
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(MailServer))]
public MailServerCollection MailServers { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(MailServer))]
public:
property MailServerCollection^ MailServers {
    MailServerCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(MailServer))>]
member MailServers : MailServerCollection
function get MailServers () : MailServerCollection

Property Value

Type: Microsoft.SqlServer.Management.Smo.Mail.MailServerCollection
A MailServerCollection that represents the mail servers associated with the mail account.

Examples

Using Database Mail

See Also

Reference

MailAccount Class

Microsoft.SqlServer.Management.Smo.Mail Namespace

Other Resources

Database Mail