Share via


SMTPConn Constructor (String)

Initializes a new instance of the SMTPConn class, initializing the SMPT server name.

Namespace:  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (in Microsoft.SqlServer.ManagedConnections.dll)

Syntax

'Declaration
Public Sub New ( _
    strSmtpServer As String _
)
'Usage
Dim strSmtpServer As String 

Dim instance As New SMTPConn(strSmtpServer)
public SMTPConn(
    string strSmtpServer
)
public:
SMTPConn(
    String^ strSmtpServer
)
new : 
        strSmtpServer:string -> SMTPConn
public function SMTPConn(
    strSmtpServer : String
)

Parameters

  • strSmtpServer
    Type: System.String
    A String that contains the SMTP server name.

See Also

Reference

SMTPConn Class

SMTPConn Overload

Microsoft.SqlServer.Dts.ManagedConnections Namespace