Condividi tramite


MethodData.PrevMethod Method

Moves to the previous method signature and returns the index of the current 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

'Dichiarazione
Public Function PrevMethod As Integer
'Utilizzo
Dim instance As MethodData
Dim returnValue As Integer

returnValue = instance.PrevMethod()
public int PrevMethod()
public:
virtual int PrevMethod() sealed
abstract PrevMethod : unit -> int 
override PrevMethod : unit -> int 
public final function PrevMethod() : int

Return Value

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

Implements

IVsMethodData.PrevMethod()

Remarks

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

The base method decrements an internal index by one and returns the original index. However, if the index might go below zero, the decrement is not performed and current index is returned. The base method does not affect the display.

.NET Framework Security

See Also

Reference

MethodData Class

MethodData Members

Microsoft.VisualStudio.Package Namespace