Condividi tramite


MethodData.GetCurrentParameter Method

Returns the current parameter being edited in 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

'Dichiarazione
Public Function GetCurrentParameter ( _
    method As Integer _
) As Integer
'Utilizzo
Dim instance As MethodData
Dim method As Integer
Dim returnValue As Integer

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

Parameters

  • method
    Type: System.Int32
    [in] An index in the Methods object to the specified method signature.

Return Value

Type: System.Int32
Returns the current index into the parameter list for the specified method signature.

Implements

IVsMethodData.GetCurrentParameter(Int32)

Remarks

As each parameter is entered, the method tip updates its display to highlight the next parameter. This method specifies which parameter is highlighted.

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

The base method returns the value of an internal parameter index.

.NET Framework Security

See Also

Reference

MethodData Class

MethodData Members

Microsoft.VisualStudio.Package Namespace