Partager via


MethodData.GetCurrentParameter Method

Returns the current parameter being edited in 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 GetCurrentParameter ( _
    method As Integer _
) As Integer
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: Int32

    [in] An index in the Methods object to the specified method signature.

Return Value

Type: 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

Microsoft.VisualStudio.Package Namespace