共用方式為


WMIConn.AcquireConnection(Object) Method

Definition

Establishes the WMI connection and returns a connection object.

public:
 override System::Object ^ AcquireConnection(System::Object ^ txn);
public override object AcquireConnection (object txn);
override this.AcquireConnection : obj -> obj
Public Overrides Function AcquireConnection (txn As Object) As Object

Parameters

txn
Object

The handle to a transaction type.

Returns

The connection object that contains the WMI connection.

Remarks

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.

Applies to