IXCLRDataValue::EnumField Method

Enumerates the fields of the value.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Syntax

HRESULT EnumField(
    [in, out] CLRDATA_ENUM *handle,
    [out] IXCLRDataValue **field,
    [in] ULONG32 nameBufLen,
    [out] ULONG32 *nameLen,
    [out, size_is(nameBufLen)] WCHAR nameBuf[],
    [out] mdFieldDef *token
);

Parameters

handle
[in] A handle for enumerating the fields of the value.

field
[out] The enumerated field.

nameBufLen
[in] The length in characters of the provided buffer nameBuf

nameLen
[out] The number of characters in the name of the field written to nameBuf

nameBuf
[out] The name of the field

token
[out] The metadata token for the field.

Remarks

The provided method is part of the IXCLRDataValue interface and corresponds to the 15th slot of the virtual method table.

Requirements

Platforms: See System Requirements. Header: None Library: None .NET Framework Versions: Available since 4.7

See also