Udostępnij za pośrednictwem


SqlMail.Accounts Property

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 (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, GetType(MailAccount))> _
Public ReadOnly Property Accounts As MailAccountCollection
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, typeof(MailAccount))] 
public MailAccountCollection Accounts { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, typeof(MailAccount))] 
public:
property MailAccountCollection^ Accounts {
    MailAccountCollection^ get ();
}
/** @property */
public MailAccountCollection get_Accounts ()
public function get Accounts () : MailAccountCollection

Property Value

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

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.