MailAccount 类
The MailAccount class represents a SQL Server Database Mail subsystem mail account.
继承层次结构
System. . :: . .Object
Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
Microsoft.SqlServer.Management.Smo. . :: . .ScriptNameObjectBase
Microsoft.SqlServer.Management.Smo.Mail..::..MailAccount
命名空间: Microsoft.SqlServer.Management.Smo.Mail
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public NotInheritable Class MailAccount _
Inherits ScriptNameObjectBase _
Implements IAlterable, ICreatable, IDroppable, IRenamable, _
IScriptable
用法
Dim instance As MailAccount
public sealed class MailAccount : ScriptNameObjectBase,
IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
public ref class MailAccount sealed : public ScriptNameObjectBase,
IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
[<SealedAttribute>]
type MailAccount =
class
inherit ScriptNameObjectBase
interface IAlterable
interface ICreatable
interface IDroppable
interface IRenamable
interface IScriptable
end
public final class MailAccount extends ScriptNameObjectBase implements IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
MailAccount 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
MailAccount() () () () | Initializes a new instance of the MailAccount class. | |
MailAccount(SqlMail, String) | Initializes a new instance of the MailAccount class on the specified instance of SQL Server Database Mail subsystem and with the specified name. | |
MailAccount(SqlMail, String, String) | Initializes a new instance of the MailAccount class on the specified instance of SQL Server Database Mail subsystem and with the specified name and description. | |
MailAccount(SqlMail, String, String, String, String) | Initializes a new instance of the MailAccount class on the specified instance of SQL Server Database Mail subsystem and with the specified name, description, display name, and e-mail address. |
页首
属性
名称 | 说明 | |
---|---|---|
Description | Gets or sets a textual description of the purpose of the mail account. | |
DisplayName | Gets or sets the name of the mail account that is displayed in messages. | |
EmailAddress | Gets or sets the e-mail address of the mail account. | |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (从 SqlSmoObject 继承。) | |
ID | Gets the ID value that uniquely identifies the mail account. | |
IsBusyAccount | ||
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (从 SqlSmoObject 继承。) | |
MailServers | Represents a collection of MailServer objects. Each MailServer object represents a mail server associated with the mail account. | |
Name | Gets or sets the name of the object. (从 NamedSmoObject 继承。) | |
ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (从 SqlSmoObject 继承。) | |
Parent | Gets or sets the SqlMail object that is the parent of the MailAccount object. | |
Properties | Gets a collection of Property objects that represent the object properties. (从 SqlSmoObject 继承。) | |
ReplyToAddress | Gets or sets the e-mail address to which the mail account replies. | |
ScalarResult | Gets the scalar result for the referenced object. (从 SqlSmoObject 继承。) | |
State | Gets the state of the referenced object. (从 SmoObjectBase 继承。) | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (从 SqlSmoObject 继承。) | |
UserData | Gets or sets user-defined data associated with the referenced object. (从 SmoObjectBase 继承。) |
页首
方法
页首
显式接口实现
名称 | 说明 | |
---|---|---|
IAlienObjectDiscover | (从 SqlSmoObject 继承。) | |
IAlienObjectGetParent | (从 SqlSmoObject 继承。) | |
IAlienObjectGetProperty | (从 SqlSmoObject 继承。) | |
ISfcPropertyProviderGetPropertySet | (从 SqlSmoObject 继承。) | |
IAlienObjectGetUrn | (从 SqlSmoObject 继承。) | |
IAlienObjectResolve | (从 SqlSmoObject 继承。) | |
IAlienObjectSetProperty | (从 SqlSmoObject 继承。) |
页首
注释
The MailAccount object provides programmatic access to the mail account in the SQL Server Database Mail subsystem. By using the MailAccount object, you can manage SQL Server Database Mail accounts.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。