Konstruktor SMTPConn (String, Boolean, Boolean)
Przestrzeń nazw: Microsoft.SqlServer.Dts.ManagedConnections
Zestaw: Microsoft.SqlServer.ManagedConnections (w Microsoft.SqlServer.ManagedConnections.dll)
Składnia
'Deklaracja
Public Sub New ( _
strSmtpServer As String, _
useWindowsAuthentication As Boolean, _
EnableSsl As Boolean _
)
'Użycie
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
)
Parametry
- strSmtpServer
Typ: System.String
A ciąg zawiera nazwa serwera SMTP.
- useWindowsAuthentication
Typ: System.Boolean
A wartość logiczna wskazujące, że uwierzytelnianie systemu Windows jest używany do uwierzytelniania dostępu do serwera.
- EnableSsl
Typ: System.Boolean
A wartość logiczna wskazujący, czy do szyfrowania komunikacji za pomocą protokołu SSL (Secure Sockets Layer) podczas wysyłania wiadomości e-mail.
Zobacz także