次の方法で共有


SqlMail.Accounts プロパティ

MailAccount オブジェクトのコレクションを表します。 各 MailAccount オブジェクトは、1 つの 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
SQL Server データベース メール サブシステムで定義されたメール アカウントを表す MailAccountCollection です。

使用例

データベース メールの使用

関連項目

参照

SqlMail クラス

Microsoft.SqlServer.Management.Smo.Mail 名前空間

その他の技術情報

データベース メール