Share via


IMethods::GetParameterCount Method

Returns the number of parameters of the specified method in the method set.

HRESULT GetParameterCount ( 
   long index,
   long* count
);

Parameters

  • index
    [in] Specifies the index of the method in the method set.

  • count
    [out] Returns a count of parameters for the specified method.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Each method signature can have different parameters and different numbers of parameters. The value returned from this method is typically used to determine the number of times the IMethods::GetParameterInfo Method is called to get parameter information.

See Also

Reference

IMethods Interface

IMethods::GetParameterInfo Method