MailProfile 类
The MailProfile class represents a SQL Server Database Mail subsystem mail profile.
继承层次结构
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..::..MailProfile
命名空间: Microsoft.SqlServer.Management.Smo.Mail
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public NotInheritable Class MailProfile _
Inherits ScriptNameObjectBase _
Implements IAlterable, ICreatable, IDroppable, IRenamable, _
IScriptable
用法
Dim instance As MailProfile
public sealed class MailProfile : ScriptNameObjectBase,
IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
public ref class MailProfile sealed : public ScriptNameObjectBase,
IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
[<SealedAttribute>]
type MailProfile =
class
inherit ScriptNameObjectBase
interface IAlterable
interface ICreatable
interface IDroppable
interface IRenamable
interface IScriptable
end
public final class MailProfile extends ScriptNameObjectBase implements IAlterable, ICreatable, IDroppable, IRenamable, IScriptable
MailProfile 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
MailProfile() () () () | Initializes a new instance of the MailProfile class. | |
MailProfile(SqlMail, String) | Initializes a new instance of the MailProfile class on the specified instance of SQL Server Database Mail subsystem and with the specified name. | |
MailProfile(SqlMail, String, String) | Initializes a new instance of the MailProfile class on the specified instance of SQL Server Database Mail subsystem and with the specified name and description. |
页首
属性
名称 | 说明 | |
---|---|---|
Description | Gets or sets a textual description of the purpose of the mail profile. | |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (从 SqlSmoObject 继承。) | |
ForceDeleteForActiveProfiles | ||
ID | Gets the ID value that uniquely identifies the mail profile. | |
IsBusyProfile | ||
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (从 SqlSmoObject 继承。) | |
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 MailProfile object. | |
Properties | Gets a collection of Property objects that represent the object properties. (从 SqlSmoObject 继承。) | |
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 MailProfile object provides programmatic access to the mail profile in the SQL Server Database Mail subsystem. With the MailAccount object you can manage SQL Server Database Mail profiles.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。