MethodData::GetParameterCount Method (Int32)

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int GetParameterCount(
	int method
) sealed

Parameters

method
Type: System::Int32

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: