共用方式為


Parent 屬性

Gets or sets the SqlMail object that is the parent of the MailAccount object.

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

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public Property Parent As SqlMail
    Get
    Set
'用途
Dim instance As MailAccount
Dim value As SqlMail

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject)]
public SqlMail Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject)]
public:
property SqlMail^ Parent {
    SqlMail^ get ();
    void set (SqlMail^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject)>]
member Parent : SqlMail with get, set
function get Parent () : SqlMail
function set Parent (value : SqlMail)

屬性值

型別:Microsoft.SqlServer.Management.Smo.Mail. . :: . .SqlMail
A SqlMail object value that specifies the parent of the MailAccount object.

備註

The SqlMail object represents the SQL Server Database Mail subsystem running on the instance of SQL Server.