Partager via


MethodData.NextMethod Method

Moves to the next method signature and returns the index of the current 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 NextMethod As Integer
public int NextMethod()
public:
virtual int NextMethod() sealed
abstract NextMethod : unit -> int  
override NextMethod : unit -> int
public final function NextMethod() : int

Return Value

Type: Int32
Returns a number representing the current method signature.

Implements

IVsMethodData.NextMethod()

Remarks

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

The base method increments an internal index by one and returns the original index. However, if the index might go past the limit, the increment is not performed and current index is returned. The base method does not affect the display.

.NET Framework Security

See Also

Reference

MethodData Class

Microsoft.VisualStudio.Package Namespace