共用方式為


SMTPConn 建構函式 (String, Boolean, Boolean)

命名空間:  Microsoft.SqlServer.Dts.ManagedConnections
組件:  Microsoft.SqlServer.ManagedConnections (在 Microsoft.SqlServer.ManagedConnections.dll 中)

語法

'宣告
Public Sub New ( _
    strSmtpServer As String, _
    useWindowsAuthentication As Boolean, _
    EnableSsl As Boolean _
)
'用途
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
)

參數

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