Partager via


Methods.GetParameterInfo Method

When implemented in a derived class, gets information about the specified parameter on 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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public MustOverride Sub GetParameterInfo ( _
    index As Integer, _
    parameter As Integer, _
    <OutAttribute> ByRef name As String, _
    <OutAttribute> ByRef display As String, _
    <OutAttribute> ByRef description As String _
)
public abstract void GetParameterInfo(
    int index,
    int parameter,
    out string name,
    out string display,
    out string description
)
public:
virtual void GetParameterInfo(
    int index, 
    int parameter, 
    [OutAttribute] String^% name, 
    [OutAttribute] String^% display, 
    [OutAttribute] String^% description
) abstract
abstract GetParameterInfo : 
        index:int * 
        parameter:int * 
        name:string byref * 
        display:string byref * 
        description:string byref -> unit
public abstract function GetParameterInfo(
    index : int, 
    parameter : int, 
    name : String, 
    display : String, 
    description : String
)

Parameters

  • index
    Type: Int32

    [in] An index into the list of method signatures.

  • parameter
    Type: Int32

    [in] An index into the parameter list of the specified method signature.

  • name
    Type: String%

    [out] Returns the name of the parameter.

  • display
    Type: String%

    [out] Returns the parameter name and type formatted for display.

  • description
    Type: String%

    [out] Returns a string containing a description of the parameter.

Remarks

In the default managed package framework implementation of the language service classes, this method is called from the GetParameterText method in the MethodData class.

.NET Framework Security

See Also

Reference

Methods Class

Microsoft.VisualStudio.Package Namespace