MethodData.GetParameterCount Method
Returns the number of parameters available for the specified method signature.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Function GetParameterCount ( _
method As Integer _
) As Integer
public int GetParameterCount(
int method
)
public:
virtual int GetParameterCount(
int method
) sealed
abstract GetParameterCount :
method:int -> int
override GetParameterCount :
method:int -> int
public final function GetParameterCount(
method : int
) : int
Parameters
method
Type: Int32[in] An index in the Methods object to the specified method signature.
Return Value
Type: Int32
If successful, returns the number of parameters; otherwise, returns 0.
Implements
IVsMethodData.GetParameterCount(Int32)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.