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.

示例

使用数据库邮件

请参阅

参考

SqlMail 类

Microsoft.SqlServer.Management.Smo.Mail 命名空间

其他资源

数据库邮件