Partager via


SMTPConn.AcquireConnection Method

Establishes the SMTP connection and returns a connection object.

Espace de noms: Microsoft.SqlServer.Dts.ManagedConnections
Assembly: Microsoft.SqlServer.ManagedConnections (in microsoft.sqlserver.managedconnections.dll)

Syntaxe

'Déclaration
Public Overrides Function AcquireConnection ( _
    txn As Object _
) As Object
public override Object AcquireConnection (
    Object txn
)
public:
virtual Object^ AcquireConnection (
    Object^ txn
) override
public Object AcquireConnection (
    Object txn
)
public override function AcquireConnection (
    txn : Object
) : Object

Paramètres

  • txn
    The handle to a transaction type.

Valeur de retour

The connection object containing the SMTP connection.

Notes

During AcquireConnection, the actual connection is created using properties that are set on ConnectionManagerBase object, as well as any connection-type specific properties set on this class

Sécurité des threads

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

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

SMTPConn Class
SMTPConn Members
Microsoft.SqlServer.Dts.ManagedConnections Namespace