다음을 통해 공유


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.

네임스페이스:  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
)

매개 변수

  • strSmtpServer
    유형: System.String
    A String that contains the SMTP server name.
  • 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.

참고 항목

참조

SMTPConn 클래스

SMTPConn 오버로드

Microsoft.SqlServer.Dts.ManagedConnections 네임스페이스