Compartilhar via


Propriedade do RDL SqlMail.Accounts

Represents a collection of MailAccount objects. Each MailAccount object represents a SQL Server Database Mail account.

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

Sintaxe

'Declaração
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(MailAccount))> _
Public ReadOnly Property Accounts As MailAccountCollection 
    Get
'Uso
Dim instance As SqlMail 
Dim value As MailAccountCollection 

value = instance.Accounts
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(MailAccount))]
public MailAccountCollection Accounts { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(MailAccount))]
public:
property MailAccountCollection^ Accounts {
    MailAccountCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(MailAccount))>]
member Accounts : MailAccountCollection
function get Accounts () : MailAccountCollection

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo.Mail.MailAccountCollection
A MailAccountCollection that represents the mail accounts defined on the SQL Server Database Mail subsystem.

Exemplos

Usando o Database Mail

Consulte também

Referência

SqlMail Classe

Namespace Microsoft.SqlServer.Management.Smo.Mail

Outros recursos

Database Mail