Share via


SMTPConn 类

定义

包含 SMTP 连接所使用的方法和属性。

public ref class SMTPConn : Microsoft::SqlServer::Dts::Runtime::ConnectionManagerBase, Microsoft::SqlServer::Dts::Runtime::IDTSComponentPersist
[Microsoft.SqlServer.Dts.Runtime.DtsConnection(ConnectionContact="Microsoft Corporation", ConnectionType="SMTP", LocalizationType=typeof(Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn), UITypeName="Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public class SMTPConn : Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist
[Microsoft.SqlServer.Dts.Runtime.DtsConnection(ConnectionContact="Microsoft Corporation", ConnectionType="SMTP", LocalizationType=typeof(Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn), UITypeName="Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public class SMTPConn : Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist
[Microsoft.SqlServer.Dts.Runtime.DtsConnection(ConnectionContact="Microsoft Corporation", ConnectionType="SMTP", LocalizationType=typeof(Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn), UITypeName="Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public class SMTPConn : Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase, Microsoft.SqlServer.Dts.Runtime.IDTSComponentPersist
[<Microsoft.SqlServer.Dts.Runtime.DtsConnection(ConnectionContact="Microsoft Corporation", ConnectionType="SMTP", LocalizationType=typeof(Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn), UITypeName="Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")>]
type SMTPConn = class
    inherit ConnectionManagerBase
    interface IDTSComponentPersist
[<Microsoft.SqlServer.Dts.Runtime.DtsConnection(ConnectionContact="Microsoft Corporation", ConnectionType="SMTP", LocalizationType=typeof(Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn), UITypeName="Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")>]
type SMTPConn = class
    inherit ConnectionManagerBase
    interface IDTSComponentPersist
[<Microsoft.SqlServer.Dts.Runtime.DtsConnection(ConnectionContact="Microsoft Corporation", ConnectionType="SMTP", LocalizationType=typeof(Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn), UITypeName="Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")>]
type SMTPConn = class
    inherit ConnectionManagerBase
    interface IDTSComponentPersist
Public Class SMTPConn
Inherits ConnectionManagerBase
Implements IDTSComponentPersist
继承
属性
实现

构造函数

SMTPConn()

初始化 SMTPConn 类的新实例。

SMTPConn(String)

初始化 SMTPConn 类的新实例,初始化 SMPT 服务器名称。

SMTPConn(String, Boolean, Boolean)

初始化 SMTPConn 类的新实例,初始化 SMPT 服务器名称、Windows 身份验证和安全套接字层的设置。

属性

AccessTokenProvider

获取或设置获取连接时使用的访问令牌提供程序。

(继承自 ConnectionManagerBase)
ConnectionDescription

返回连接的本地化说明。

ConnectionDisplayName

返回连接的本地化显示名称。

ConnectionString

获取或设置 SMTP 连接的连接字符串。

EnableSsl

获取或设置一个布尔值,该值指示在发送电子邮件时是否使用安全套接字层 (SSL) 加密通信。

ProtectionLevel

通过使用 DTSProtectionLevel 枚举获取或设置一个值,该值指定连接如何控制对敏感信息的访问。

(继承自 ConnectionManagerBase)
Scope

获取此 ConnectionManagerBase 对象的 DTS 连接管理器作用域。

(继承自 ConnectionManagerBase)
SmtpServer

获取或设置用于连接到 SMTP 服务器的名称。

SupportsDTCTransactions

返回一个布尔值,该值指示连接是否支持 Microsoft 分布式事务处理协调器 (MS DTC) 事务。

(继承自 ConnectionManagerBase)
TargetServerVersion

包含 SMTP 连接所使用的方法和属性。

(继承自 ConnectionManagerBase)
Timeout

获取或设置连接生成的超时请求。

UseWindowsAuthentication

获取或设置一个布尔值,该值指示是否使用 Windows 身份验证访问 SMTP 服务器。

Version

返回此连接管理器的版本。

(继承自 ConnectionManagerBase)

方法

AcquireConnection(Object)

建立 SMTP 连接,并返回一个连接对象。

CanUpdate(String)

获取或设置一个布尔值,该值确定连接管理器是否支持将连接 XML 升级到较新版本。

(继承自 ConnectionManagerBase)
Equals(Object)

确定两个对象实例是否相等。

(继承自 DtsObject)
GetHashCode()

返回此实例的哈希代码。

(继承自 DtsObject)
LoadFromXML(XmlElement, IDTSInfoEvents)

此方法不能由应用程序代码调用。 若要加载保存为 .xml 的包,请使用 LoadPackage(String, IDTSEvents) 方法。

ReleaseConnection(Object)

释放在 AcquireConnection(Object) 期间内建立的连接。 在设计时和运行时调用。

(继承自 ConnectionManagerBase)
SaveToXML(XmlDocument, IDTSInfoEvents)

此方法不能由应用程序代码调用。 若将包保存为 .xml,请使用 SaveToXml(String, Package, IDTSEvents) 方法。

SetQualifier(String)

在创建连接管理器之后但尚未运行它之前,更改连接管理器上的限定符。

(继承自 ConnectionManagerBase)
Update(String)

更新以前版本的连接管理器保留的 XML。

(继承自 ConnectionManagerBase)
Validate(IDTSInfoEvents)

验证连接并返回一个指示成功或失败的枚举。

(继承自 ConnectionManagerBase)

适用于