MethodData.GetCurrentParameter Method

Returns the current parameter being edited in the specified method signature.

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

Syntax

'宣言
Public Function GetCurrentParameter ( _
    method As Integer _
) As Integer
'使用
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
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.

Permissions

See Also

Reference

MethodData Class

MethodData Members

Microsoft.VisualStudio.Package Namespace