Accounts 属性

表示 MailAccount 对象的集合。每个 MailAccount 对象都表示一个 SQL Server 数据库邮件帐户。

命名空间:  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
一个 MailAccountCollection 值,该值表示在 SQL Server 数据库邮件子系统中定义的邮件帐户。