共用方式為


IDebugGenericFieldInstance::GetTypeArguments

Retrieves the type parameter arguments for this instance.

Syntax

int GetTypeArguments(
   uint              cArgs,
   out IDebugField[] ppArgs,
   ref uint          pcArgs
);

Parameters

cArgs
[in] Number of type parameters.

ppArgs
[out] Returns an array of type parameters.

pcArgs
[in, out] Number of members in the ppArgs array.

Return Value

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

See also