IDebugManagedObject::GetManagedObject

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Returns an interface that represents the managed object.

Syntax

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