IDebugGenericFieldDefinition::TypeParamCount

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

Retrieves the number of type parameters that are associated with the generic field.

Syntax

HRESULT TypeParamCount(
   ULONG32* pcParams
);
int TypeParamCount(
   ref uint pcParams
);

Parameters

pcParams
[in, out] Number of type parameters.

Return Value

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

Remarks

If List<T>, this method returns 1, and, if List<T1,T2>, this method returns 2. This method returns 0 if there are no type parameters.

See also