ICorDebugVariableHome::GetSlotIndex Method
Gets the managed slot-index of a local variable.
Syntax
HRESULT GetSlotIndex(
[out] ULONG32 *pSlotIndex
);
Parameters
pSlotIndex
[out] A pointer to the slot-index of a local variable.
Return Value
The method returns the following values.
Value | Description |
---|---|
S_OK |
The method call returned a slot-index value in pSlotIndex . |
E_FAIL |
The current ICorDebugVariableHome instance represents a function argument. |
Remarks
The slot-index can be used to retrieve the metadata for this local variable.
Requirements
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4.6.2
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.