MailAccount MailAccount MailAccount Constructors

Definition

Overloads

MailAccount() MailAccount() MailAccount()

Initializes a new instance of the MailAccount class.

MailAccount(SqlMail, String) 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) MailAccount(SqlMail, String, String) 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) MailAccount(SqlMail, String, String, String, String) 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.

MailAccount() MailAccount() MailAccount()

Initializes a new instance of the MailAccount class.

public:
 MailAccount();
public MailAccount ();
Public Sub New ()

Examples

Using Database Mail

Remarks

The default constructor initializes any fields to their default values.

See Also

MailAccount(SqlMail, String) 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.

public:
 MailAccount(Microsoft::SqlServer::Management::Smo::Mail::SqlMail ^ sqlMail, System::String ^ name);
public MailAccount (Microsoft.SqlServer.Management.Smo.Mail.SqlMail sqlMail, string name);
Parameters
sqlMail
SqlMail SqlMail SqlMail

A SqlMail object value that specifies the SQL Server Database Mail subsystem that is running on the instance of SQL Server.

name
String String String

A String value that specifies the name of the mail account.

Examples

Using Database Mail

See Also

MailAccount(SqlMail, String, String) MailAccount(SqlMail, String, String) 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.

public:
 MailAccount(Microsoft::SqlServer::Management::Smo::Mail::SqlMail ^ parent, System::String ^ name, System::String ^ description);
public MailAccount (Microsoft.SqlServer.Management.Smo.Mail.SqlMail parent, string name, string description);
Public Sub New (parent As SqlMail, name As String, description As String)
Parameters
parent
SqlMail SqlMail SqlMail

A SqlMail object value that specifies the SQL Server Database Mail subsystem that is running on the instance of SQL Server.

name
String String String

A String value that specifies the name of the mail account.

description
String String String

A String value that contains a textual description of the purpose of the mail account.

Examples

Using Database Mail

MailAccount(SqlMail, String, String, String, String) MailAccount(SqlMail, String, String, String, String) 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.

public:
 MailAccount(Microsoft::SqlServer::Management::Smo::Mail::SqlMail ^ parent, System::String ^ name, System::String ^ description, System::String ^ displayName, System::String ^ emailAddress);
public MailAccount (Microsoft.SqlServer.Management.Smo.Mail.SqlMail parent, string name, string description, string displayName, string emailAddress);
Public Sub New (parent As SqlMail, name As String, description As String, displayName As String, emailAddress As String)
Parameters
parent
SqlMail SqlMail SqlMail

A SqlMail object value that specifies the SQL Server Database Mail subsystem that is running on the instance of SQL Server.

name
String String String

A String value that specifies the name of the mail account.

description
String String String

A String value that contains a textual description of the purpose of the mail account.

displayName
String String String

A String value that specifies the name that is displayed when messages are sent.

emailAddress
String String String

A String value that specifies the e-mail address of the mail account.

Examples

Using Database Mail

Applies to