Condividi tramite


Costruttore SMTPConn (String, Boolean, Boolean)

Initializes a new instance of the SMTPConn class, initializing the SMPT server name, windows authentication, and setting for Secure Sockets Layer.

Spazio dei nomi  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (in Microsoft.SqlServer.ManagedConnections.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    strSmtpServer As String, _
    useWindowsAuthentication As Boolean, _
    EnableSsl As Boolean _
)
'Utilizzo
Dim strSmtpServer As String 
Dim useWindowsAuthentication As Boolean 
Dim EnableSsl As Boolean 

Dim instance As New SMTPConn(strSmtpServer, _
    useWindowsAuthentication, EnableSsl)
public SMTPConn(
    string strSmtpServer,
    bool useWindowsAuthentication,
    bool EnableSsl
)
public:
SMTPConn(
    String^ strSmtpServer, 
    bool useWindowsAuthentication, 
    bool EnableSsl
)
new : 
        strSmtpServer:string * 
        useWindowsAuthentication:bool * 
        EnableSsl:bool -> SMTPConn
public function SMTPConn(
    strSmtpServer : String, 
    useWindowsAuthentication : boolean, 
    EnableSsl : boolean
)

Parametri

  • strSmtpServer
    Tipo: System.String
    A String that contains the SMTP server name.
  • useWindowsAuthentication
    Tipo: System.Boolean
    A Boolean indicating that Windows Authentication is used to authenticate access to the server.
  • EnableSsl
    Tipo: System.Boolean
    A Boolean indicating whether to encrypt communication using Secure Sockets Layer (SSL) when sending e-mail messages.

Vedere anche

Riferimento

SMTPConn Classe

Overload SMTPConn

Spazio dei nomi Microsoft.SqlServer.Dts.ManagedConnections