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
'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, _
GetType(MailAccount))> _
Public ReadOnly Property Accounts As MailAccountCollection
Get
'Usage
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
Property Value
Type: Microsoft.SqlServer.Management.Smo.Mail.MailAccountCollection
A MailAccountCollection that represents the mail accounts defined on the SQL Server Database Mail subsystem.
See Also