Поделиться через


Свойство SqlMail.Accounts

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

Пространство имен:  Microsoft.SqlServer.Management.Smo.Mail
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(MailAccount))> _
Public ReadOnly Property Accounts As MailAccountCollection 
    Get
'Применение
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

Значение свойства

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

Примеры

Использование компонента Database Mail

См. также

Справочник

SqlMail Класс

Пространство имен Microsoft.SqlServer.Management.Smo.Mail

Другие ресурсы

Компонент Database Mail