次の方法で共有


IVsMethodData.GetParameterText Method

Gets the text, usually the name, of a specified parameter for a specified method.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣言
Function GetParameterText ( _
    iMethod As Integer, _
    iParm As Integer, _
    type As ParameterTextType _
) As IntPtr
IntPtr GetParameterText(
    int iMethod,
    int iParm,
    ParameterTextType type
)
IntPtr GetParameterText(
    [InAttribute] int iMethod, 
    [InAttribute] int iParm, 
    [InAttribute] ParameterTextType type
)
abstract GetParameterText : 
        iMethod:int * 
        iParm:int * 
        type:ParameterTextType -> IntPtr 
function GetParameterText(
    iMethod : int, 
    iParm : int, 
    type : ParameterTextType
) : IntPtr

Parameters

  • iMethod
    Type: System.Int32
    [in] Method number for which to obtain parameter information.
  • iParm
    Type: System.Int32
    [in] Parameter number for which information is required.

Return Value

Type: System.IntPtr
Returns the text of the specified parameter. May be nulla null reference (Nothing in Visual Basic).

Remarks

COM Signature

From textmgr.idl:

const WCHAR * IVsMethodData::GetParameterText(
   [in] long iMethod, 
   [in] long iParm, 
   [in] ParameterTextType type
);

Use this method to return parameter name, description, or declaration information to the view.

.NET Framework Security

See Also

Reference

IVsMethodData Interface

Microsoft.VisualStudio.TextManager.Interop Namespace