共用方式為


MailAccountCollection.Add 方法

Adds a Microsoft.SqlServer.Management.Smo.Mail.MailAccount to this collection.

命名空間:  Microsoft.SqlServer.Management.Smo.Mail
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Add ( _
    mailAccount As MailAccount _
)
'用途
Dim instance As MailAccountCollection 
Dim mailAccount As MailAccount

instance.Add(mailAccount)
public void Add(
    MailAccount mailAccount
)
public:
void Add(
    MailAccount^ mailAccount
)
member Add : 
        mailAccount:MailAccount -> unit
public function Add(
    mailAccount : MailAccount
)

參數

請參閱

參考

MailAccountCollection 類別

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