IVsMethodData.GetParameterText(Int32, Int32, ParameterTextType) 方法

定义

获取指定方法的指定参数的文本,通常为名称。

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

参数

iMethod
Int32

中要为其获取参数信息的方法号。

iParm
Int32

中需要其信息的参数编号。

type
ParameterTextType

中参数类型。 有关值的列表 type ,请参阅 ParameterTextType

返回

IntPtr

nativeint

返回指定参数的文本。 可能为 null。

注解

COM 签名

从 textmgr:

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

使用此方法可向视图返回参数名称、说明或声明信息。

适用于