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 数据库邮件子系统上定义的所有邮件帐户。
公共类 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 数据库邮件子系统。