다음을 통해 공유


Methods.GetParameterCount Method

When implemented in a derived class, gets the number of parameters on the specified method signature.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

‘선언
Public MustOverride Function GetParameterCount ( _
    index As Integer _
) As Integer
‘사용 방법
Dim instance As Methods
Dim index As Integer
Dim returnValue As Integer

returnValue = instance.GetParameterCount(index)
public abstract int GetParameterCount(
    int index
)
public:
virtual int GetParameterCount(
    int index
) abstract
abstract GetParameterCount : 
        index:int -> int 
public abstract function GetParameterCount(
    index : int
) : int

Parameters

  • index
    Type: System.Int32
    [in] An index into the list of method signatures.

Return Value

Type: System.Int32
The number of parameters on the specified method signature, or -1.

Remarks

This method is used to track where the user is in the parameter list when entering a method's parameters.

.NET Framework Security

See Also

Reference

Methods Class

Methods Members

Microsoft.VisualStudio.Package Namespace