Condividi tramite


IVsMethodData.GetParameterText(Int32, Int32, ParameterTextType) Method

Definition

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

public:
 IntPtr GetParameterText(int iMethod, int iParm, Microsoft::VisualStudio::TextManager::Interop::ParameterTextType type);
public IntPtr GetParameterText (int iMethod, int iParm, Microsoft.VisualStudio.TextManager.Interop.ParameterTextType type);
abstract member GetParameterText : int * int * Microsoft.VisualStudio.TextManager.Interop.ParameterTextType -> nativeint
Public Function GetParameterText (iMethod As Integer, iParm As Integer, type As ParameterTextType) As IntPtr

Parameters

iMethod
Int32

[in] Method number for which to obtain parameter information.

iParm
Int32

[in] Parameter number for which information is required.

type
ParameterTextType

[in] Parameter type. For a list of type values, see ParameterTextType.

Returns

IntPtr

nativeint

Returns the text of the specified parameter. May be null.

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.

Applies to