Freigeben über


MailProfile.Parent-Eigenschaft

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

Namespace:  Microsoft.SqlServer.Management.Smo.Mail
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public Property Parent As SqlMail 
    Get 
    Set
'Usage
Dim instance As MailProfile 
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)

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Smo.Mail.SqlMail
A SqlMail object value that specifies the parent of the MailProfile object.

Hinweise

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

Beispiele

Verwenden von Datenbank-E-Mail

Siehe auch

Verweis

MailProfile Klasse

Microsoft.SqlServer.Management.Smo.Mail-Namespace

Andere Ressourcen

Datenbank-E-Mail