IDebugGenericFieldInstance::TypeArgumentCount
Note
This article applies to Visual Studio 2015. 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
Returns the number of type parameter arguments for this instance.
Syntax
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.