Condividi tramite


IDebugGenericFieldInstance::TypeArgumentCount

Returns the number of type parameter arguments for this instance.

HRESULT TypeArgumentCount(
   ULONG32* pcArgs
);
int TypeArgumentCount(
   ref uint pcArgs
);

Parameters

  • pcArgs
    [in, out] Number of type parameter arguments for this instance.

Return Value

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

Remarks

For example, if List<int>, this method returns 1, and, if List<int,float2> this method returns 2. This method returns 0 if there are no type arguments.

See Also

Reference

IDebugGenericFieldInstance