共用方式為


AcquireConnection 方法

Establishes the WMI connection and returns a connection object.

命名空間:  Microsoft.SqlServer.Dts.ManagedConnections
組件:  Microsoft.SqlServer.ManagedConnections (在 Microsoft.SqlServer.ManagedConnections.dll 中)

語法

'宣告
Public Overrides Function AcquireConnection ( _
    txn As Object _
) As Object
'用途
Dim instance As WMIConn
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

參數

傳回值

型別:System. . :: . .Object
The connection object that contains the WMI connection.

備註

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.