共用方式為


IDebugManagedObject::GetManagedObject

Returns an interface that represents the managed object.

HRESULT GetManagedObject( 
   IUnknown** ppManagedObject
);
int GetManagedObject(
   out object ppManagedObject
);

Parameters

  • ppManagedObject
    [out] Returns an interface that represents the managed object.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

The interface returned from this method can be queried for any interface implemented by the managed class, allowing its methods to be called.

See Also

Reference

IDebugManagedObject