Condividi tramite


WMIConn.AcquireConnection Method

Establishes the WMI connection and returns a connection object.

Spazio dei nomi: Microsoft.SqlServer.Dts.ManagedConnections
Assembly : Microsoft.SqlServer.ManagedConnections (in microsoft.sqlserver.managedconnections.dll)

Sintassi

'Dichiarazione
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

Parametri

  • txn
    The handle to a transaction type.

Valore restituito

The connection object that contains the WMI connection.

Osservazioni

During a call to the AcquireConnection, the actual connection is created using properties that are set on the ConnectionManagerBase object, as well as any properties specific to the connection type that were set on this class.

Thread Safety

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

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