次の方法で共有


IDebugMethodField::GetThis

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

Gets the this (Me in Visual Basic) pointer of the object containing the method.

Syntax

HRESULT GetThis( 
   IDebugClassField** ppClass
);
int GetThis(
   out IDebugClassField ppClass
);

Parameters

ppClass
[out] Returns an IDebugClassField object representing the "this" pointer.

Return Value

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

Remarks

In object-oriented languages, there is typically an implied pointer to the current instantiation of a class. This is known as this in C#/C++ and as Me in Visual Basic.

See also