Partilhar via


MethodData.GetParameterCount(Int32) Method

Definition

Returns the number of parameters available for the specified method signature.

public:
 virtual int GetParameterCount(int method);
public:
 int GetParameterCount(int method);
int GetParameterCount(int method);
public int GetParameterCount (int method);
abstract member GetParameterCount : int -> int
override this.GetParameterCount : int -> int
Public Function GetParameterCount (method As Integer) As Integer

Parameters

method
Int32

[in] An index in the Methods object to the specified method signature.

Returns

If successful, returns the number of parameters; otherwise, returns 0.

Implements

Remarks

This method is an implementation of the GetParameterCount method on the IVsMethodData interface.

The base method makes sure the method parameter is valid and there is a Methods object. The base method then forwards the call to the GetParameterCount method on the Methods object that was passed to the Refresh method.

Applies to