IDebugGenericFieldDefinition::GetFormalTypeParams
Applies to: Visual Studio Visual 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 type parameters given the number of parameters.
Syntax
HRESULT GetFormalTypeParams(
ULONG32 cParams,
IDebugGenericParamField** ppParams,
ULONG32* pcParams
);
int GetFormalTypeParams(
uint cParams,
out IDebugGenericParamField[] ppParams,
ref uint pcParams
);
Parameters
cParams
[in] Number of parameters.
ppParams
[out] Array of type parameters.
pcParams
[in, out] Number of parameters in the ppParams
array.
Return Value
If successful, returns S_OK
; otherwise, returns an error code.
Remarks
Return the type parameters in order from left to right. For example, Dictionary<K,V> returns IDebugFormalGenericParameters {K,V}.