SMTPConn 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SMTPConn 類別的新執行個體。
多載
| SMTPConn() |
初始化 SMTPConn 類別的新實例。 |
| SMTPConn(String) |
初始化 SMTPConn 類別的新實例,並初始化 SMPT 伺服器名稱。 |
| SMTPConn(String, Boolean, Boolean) |
初始化 SMTPConn 類別的新實例,初始化 SMPT 伺服器名稱、windows 驗證和安全通訊端層的設定。 |
SMTPConn()
初始化 SMTPConn 類別的新實例。
public:
SMTPConn();
public SMTPConn ();
Public Sub New ()
適用於
SMTPConn(String)
初始化 SMTPConn 類別的新實例,並初始化 SMPT 伺服器名稱。
public:
SMTPConn(System::String ^ strSmtpServer);
public SMTPConn (string strSmtpServer);
new Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn : string -> Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn
Public Sub New (strSmtpServer As String)
參數
- strSmtpServer
- String
包含 SMTP 伺服器名稱的字串。
適用於
SMTPConn(String, Boolean, Boolean)
初始化 SMTPConn 類別的新實例,初始化 SMPT 伺服器名稱、windows 驗證和安全通訊端層的設定。
public:
SMTPConn(System::String ^ strSmtpServer, bool useWindowsAuthentication, bool EnableSsl);
public SMTPConn (string strSmtpServer, bool useWindowsAuthentication, bool EnableSsl);
new Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn : string * bool * bool -> Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn
Public Sub New (strSmtpServer As String, useWindowsAuthentication As Boolean, EnableSsl As Boolean)
參數
- strSmtpServer
- String
包含 SMTP 伺服器名稱的字串。
- useWindowsAuthentication
- Boolean
指出使用 Windows 驗證來驗證服務器存取權的布林值。
- EnableSsl
- Boolean
指出傳送電子郵件訊息時,是否要使用安全通訊端層 (SSL) 來加密通訊的布林值。