MailServerCollection.Add Method
Adds a MailServer to the collection.
Namespace: Microsoft.SqlServer.Management.Smo.Mail
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Add ( _
mailServer As MailServer _
)
'Usage
Dim instance As MailServerCollection
Dim mailServer As MailServer
instance.Add(mailServer)
public void Add(
MailServer mailServer
)
public:
void Add(
MailServer^ mailServer
)
member Add :
mailServer:MailServer -> unit
public function Add(
mailServer : MailServer
)
Parameters
- mailServer
Type: Microsoft.SqlServer.Management.Smo.Mail.MailServer
The MailServer to add to the collection.