Dela via


SMTPConn Class

Contains the methods and properties used by SMTP connections.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.ConnectionManagerBase
      Microsoft.SqlServer.Dts.ManagedConnections.SMTPConn

Namespace:  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (in Microsoft.SqlServer.ManagedConnections.dll)

Syntax

'Declaration
<DtsConnectionAttribute(ConnectionType := "SMTP", LocalizationType := GetType(SMTPConn),  _
    ConnectionContact := "Microsoft Corporation", UITypeName := "Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")> _
Public Class SMTPConn _
    Inherits ConnectionManagerBase _
    Implements IDTSComponentPersist
'Usage
Dim instance As SMTPConn
[DtsConnectionAttribute(ConnectionType = "SMTP", LocalizationType = typeof(SMTPConn), 
    ConnectionContact = "Microsoft Corporation", UITypeName = "Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public class SMTPConn : ConnectionManagerBase, IDTSComponentPersist
[DtsConnectionAttribute(ConnectionType = L"SMTP", LocalizationType = typeof(SMTPConn), 
    ConnectionContact = L"Microsoft Corporation", UITypeName = L"Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")]
public ref class SMTPConn : public ConnectionManagerBase, 
    IDTSComponentPersist
[<DtsConnectionAttribute(ConnectionType = "SMTP", LocalizationType = typeof(SMTPConn), 
    ConnectionContact = "Microsoft Corporation", UITypeName = "Microsoft.DataTransformationServices.Design.SmtpConnectionManagerUI, Microsoft.DataTransformationServices.Design, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91")>]
type SMTPConn =  
    class
        inherit ConnectionManagerBase
        interface IDTSComponentPersist
    end
public class SMTPConn extends ConnectionManagerBase implements IDTSComponentPersist

The SMTPConn type exposes the following members.

Constructors

  Name Description
Public method SMTPConn() Initializes a new instance of the SMTPConn class.
Public method SMTPConn(String) Initializes a new instance of the SMTPConn class, initializing the SMPT server name.
Public method SMTPConn(String, Boolean, Boolean)

Top

Properties

  Name Description
Public propertyStatic member ConnectionDescription Returns the localized description of the connection.
Public propertyStatic member ConnectionDisplayName Returns the localized display name of the connection.
Public property ConnectionString Gets or sets the connection string for the SMTP connection. (Overrides ConnectionManagerBase.ConnectionString.)
Public property EnableSsl Gets or sets a Boolean indicating whether to encrypt communication using Secure Sockets Layer (SSL) when sending e-mail messages.
Public property ProtectionLevel Gets or sets a value, by using the DTSProtectionLevel enumeration, that enforces how the connection controls sensitive information. (Inherited from ConnectionManagerBase.)
Public property SmtpServer Gets or sets the name used to connect to the SMTP server.
Public property SupportsDTCTransactions Returns a Boolean that indicates if the connection supports Microsoft Distributed Transaction Coordinator (MS DTC) transactions. (Inherited from ConnectionManagerBase.)
Public property UseWindowsAuthentication Gets or sets a Boolean indicating whether to access the SMTP server using Windows Authentication.
Public property Version Returns the version of this connection manager. (Inherited from ConnectionManagerBase.)

Top

Methods

  Name Description
Public method AcquireConnection Establishes the SMTP connection and returns a connection object. (Overrides ConnectionManagerBase.AcquireConnection(Object).)
Public method CanUpdate Gets or sets a Boolean that determines whether a connection manager supports upgrading the connection XML to a newer version. (Inherited from ConnectionManagerBase.)
Public method Equals Determines whether two object instances are equal. (Inherited from DtsObject.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from DtsObject.)
Public method GetType (Inherited from Object.)
Public method LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
Protected method MemberwiseClone (Inherited from Object.)
Public method ReleaseConnection Frees the connection established during AcquireConnection. Called at design time and run time. (Inherited from ConnectionManagerBase.)
Public method SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
Public method SetQualifier Changes a qualifier on the connection manager after the connection manager has been created, but before it is run. (Inherited from ConnectionManagerBase.)
Public method ToString (Inherited from Object.)
Public method Update Updates the XML persisted by a previous version of the connection manager. (Inherited from ConnectionManagerBase.)
Public method Validate Validates the connection and returns an enumeration that indicates success or failure. (Inherited from ConnectionManagerBase.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.