Compartilhar via


Propriedade do RDL MailAccount.MailServers

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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(MailServer))> _
Public ReadOnly Property MailServers As MailServerCollection 
    Get
'Uso
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

Valor da propriedade

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

Exemplos

Usando o Database Mail

Consulte também

Referência

MailAccount Classe

Namespace Microsoft.SqlServer.Management.Smo.Mail

Outros recursos

Database Mail