IXCLRDataValue::GetNumFields2 Method

Gets the number of arguments corresponding to the stack frame method.

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 GetNumFields2(
    [in] ULONG32 flags,
    [in] IXCLRDataTypeInstance *fromType,
    [out] ULONG32 *numFields
);

Parameters

flags
[in] A set of flags defining what fields to count. Such is one or more of the CLRDataFieldFlag enumeration.

fromType
[in] If provided, only fields defined in the given type will be counted.

numFields
[out] The count of fields in the value as described by flags and fromType.

Remarks

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

Requirements

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

See also