Compartilhar via


Método AcquireConnection

Establishes the SMTP connection and returns a connection object.

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

Sintaxe

'Declaração
Public Overrides Function AcquireConnection ( _
    txn As Object _
) As Object
'Uso
Dim instance As SMTPConn
Dim txn As Object
Dim returnValue As Object

returnValue = instance.AcquireConnection(txn)
public override Object AcquireConnection(
    Object txn
)
public:
virtual Object^ AcquireConnection(
    Object^ txn
) override
abstract AcquireConnection : 
        txn:Object -> Object 
override AcquireConnection : 
        txn:Object -> Object 
public override function AcquireConnection(
    txn : Object
) : Object

Parâmetros

Valor de retorno

Tipo: System. . :: . .Object
The connection object containing the SMTP connection.

Comentários

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