Compartir a través de


SqlMail.Accounts Property

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

Espacio de nombres: Microsoft.SqlServer.Management.Smo.Mail
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public ReadOnly Property Accounts As MailAccountCollection
public MailAccountCollection Accounts { get; }
public:
property MailAccountCollection^ Accounts {
    MailAccountCollection^ get ();
}
/** @property */
public MailAccountCollection get_Accounts ()
public function get Accounts () : MailAccountCollection

Valor de propiedad

A MailAccountCollection that represents the mail accounts defined on the SQL Server Database Mail subsystem.

Notas

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

Ejemplo

How to: Create a Database Mail Account by Using Visual Basic .NET

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

SqlMail Class
SqlMail Members
Microsoft.SqlServer.Management.Smo.Mail Namespace

Otros recursos

Using Database Mail
Correo electrónico de base de datos