共用方式為


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

The Microsoft.SqlServer.Management.Smo.Mail namespace contains classes that represent the Microsoft SQL Server Database Mail service.

The Microsoft.SqlServer.Management.Smo.Mail namespace resides in the Micrsoft.SqlServer.Smo.dll. When you add a reference to the dll in your program, you can import this namespace and reference all the classes in it.

By using the SMO Mail objects, you can do the following:

  • Create and modify mail accounts.

  • Create and modify mail profiles.

  • Configure mail servers.

類別

  類別 說明
公用類別 ConfigurationValue The ConfigurationValue class represents a SQL Server Database Mail subsystem configuration option.
公用類別 ConfigurationValueCollection The ConfigurationValueCollection class represents a collection of ConfigurationValue objects that represent all the configuration options defined on the SQL Server Database Mail subsystem.
公用類別 MailAccount The MailAccount class represents a SQL Server Database Mail subsystem mail account.
公用類別 MailAccountCollection MailAccountCollection 類別代表 MailAccount 物件集合,這些物件表示 SQL Server Database Mail 子系統上定義的所有郵件帳戶。
公用類別 MailProfile The MailProfile class represents a SQL Server Database Mail subsystem mail profile.
公用類別 MailProfileCollection The MailProfileCollection class represents a collection of MailProfile objects that represent all the mail profiles defined on the SQL Server Database Mail subsystem.
公用類別 MailServer The MailServer class represents a SQL Server Database Mail subsystem mail server.
公用類別 MailServerCollection The MailServerCollection class represents a collection of MailServer objects that represent all the mail servers defined on the SQL Server Database Mail subsystem.
公用類別 SqlMail SqlMail 類別代表 SQL Server Database Mail 子系統。