共用方式為


MethodData.GetCurrentParameter Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'宣告
Public Function GetCurrentParameter ( _
    method As Integer _
) As Integer
public int GetCurrentParameter(
    int method
)

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

Microsoft.VisualStudio.Package Namespace