返回方法返回类型、方法名称或方法声明。
命名空间: 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] 方法数字。
type
类型:Microsoft.VisualStudio.TextManager.Interop.MethodTextType[in] 方法文本类型返回的值。 为 type 列出了值 MethodTextType参见。
返回值
类型:IntPtr
备注
COM 签名
从 textmgr.idl:
const WCHAR * IVsMethodData::GetMethodText(
[in] long iMethod,
[in] MethodTextType type
);
由视图重复调用方法显示文本的各个部分如在类型指定的值依赖于此方法参数。 这些值包括方法类型、名称、说明、括号和分隔符的信息。 如果方括号 (括号,等等) 和分隔符对于这种语言都是必需的,不要将返回一个空字符串强制此时将显示视图。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。