IVsMethodData.GetMethodText 方法

返回方法返回类型、方法名称或方法声明。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetMethodText ( _
    iMethod As Integer, _
    type As MethodTextType _
) As IntPtr
IntPtr GetMethodText(
    int iMethod,
    MethodTextType type
)
IntPtr GetMethodText(
    [InAttribute] int iMethod, 
    [InAttribute] MethodTextType type
)
abstract GetMethodText : 
        iMethod:int * 
        type:MethodTextType -> IntPtr
function GetMethodText(
    iMethod : int, 
    type : MethodTextType
) : IntPtr

参数

  • iMethod
    类型:Int32

    [in] 方法数字。

返回值

类型:IntPtr

备注

COM 签名

从 textmgr.idl:

const WCHAR * IVsMethodData::GetMethodText(
   [in] long iMethod, 
   [in] MethodTextType type
);

由视图重复调用方法显示文本的各个部分如在类型指定的值依赖于此方法参数。 这些值包括方法类型、名称、说明、括号和分隔符的信息。 如果方括号 (括号,等等) 和分隔符对于这种语言都是必需的,不要将返回一个空字符串强制此时将显示视图。

.NET Framework 安全性

请参阅

参考

IVsMethodData 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间