IDebugMethodField::EnumParameters

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

Creates an enumerator for the parameters of the method.

Syntax

HRESULT EnumParameters( 
   IEnumDebugFields** ppParams
);
int EnumParameters(
   out IEnumDebugFields ppParams
);

Parameters

ppParams
[out] Returns an IEnumDebugFields object representing the list of parameters to the method; otherwise, returns a null value if there are no parameters.

Return Value

If successful, returns S_OK or returns S_FALSE if there are no parameters. Otherwise, returns an error code.

Remarks

Each element is an IDebugField object representing different types of parameters. Call the GetKind method on each object to determine exactly what kind of parameter the object represents.

A parameter includes both its variable name and its type. The first parameter to a class method is typically the "this" pointer.

If only the types of the parameters is needed, call the EnumArguments method.

See also