Share via


SMTPConn Class

Definition

Contains the methods and properties used by SMTP connections.

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
Inheritance
Attributes
Implements

Constructors

SMTPConn()

Initializes a new instance of the SMTPConn class.

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.

SMTPConn(String)

Initializes a new instance of the SMTPConn class, initializing the SMPT server name.

Properties

AccessTokenProvider

Gets or sets the access token provider used when acquiring connection.

(Inherited from ConnectionManagerBase)
ConnectionDescription

Returns the localized description of the connection.

ConnectionDisplayName

Returns the localized display name of the connection.

ConnectionString

Gets or sets the connection string for the SMTP connection.

EnableSsl

Gets or sets a Boolean indicating whether to encrypt communication using Secure Sockets Layer (SSL) when sending e-mail messages.

ProtectionLevel

Gets or sets a value, by using the DTSProtectionLevel enumeration, that enforces how the connection controls sensitive information.

(Inherited from ConnectionManagerBase)
Scope

Gets the DTS connection manager scope for this ConnectionManagerBase object.

(Inherited from ConnectionManagerBase)
SmtpServer

Gets or sets the name used to connect to the SMTP server.

SupportsDTCTransactions

Returns a Boolean that indicates if the connection supports Microsoft Distributed Transaction Coordinator (MS DTC) transactions.

(Inherited from ConnectionManagerBase)
TargetServerVersion (Inherited from ConnectionManagerBase)
Timeout

Gets or sets the timeout request made by the connection.

UseWindowsAuthentication

Gets or sets a Boolean indicating whether to access the SMTP server using Windows Authentication.

Version

Returns the version of this connection manager.

(Inherited from ConnectionManagerBase)

Methods

AcquireConnection(Object)

Establishes the SMTP connection and returns a connection object.

CanUpdate(String)

Gets or sets a Boolean that determines whether a connection manager supports upgrading the connection XML to a newer version.

(Inherited from ConnectionManagerBase)
Equals(Object)

Determines whether two object instances are equal.

(Inherited from DtsObject)
GetHashCode()

Returns the hash code for this instance.

(Inherited from DtsObject)
LoadFromXML(XmlElement, IDTSInfoEvents)

This method is not callable by your application code. To load a package saved as .xml, use the LoadPackage(String, IDTSEvents) method.

ReleaseConnection(Object)

Frees the connection established during AcquireConnection(Object). Called at design time and run time.

(Inherited from ConnectionManagerBase)
SaveToXML(XmlDocument, IDTSInfoEvents)

This method is not callable by your application code. To save a package as .xml, use the SaveToXml(String, Package, IDTSEvents) method.

SetQualifier(String)

Changes a qualifier on the connection manager after the connection manager has been created, but before it is run.

(Inherited from ConnectionManagerBase)
Update(String)

Updates the XML persisted by a previous version of the connection manager.

(Inherited from ConnectionManagerBase)
Validate(IDTSInfoEvents)

Validates the connection and returns an enumeration that indicates success or failure.

(Inherited from ConnectionManagerBase)

Applies to