返回指定的方法签名的指定参数文本。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
语法
声明
Public Function GetParameterText ( _
method As Integer, _
parameter As Integer, _
type As ParameterTextType _
) As IntPtr
public IntPtr GetParameterText(
int method,
int parameter,
ParameterTextType type
)
参数
- method
类型:System.Int32
[in] 在 Methods 对象的索引到指定的方法签名。
- parameter
类型:System.Int32
[in] 到指定的参数的索引。
- type
类型:Microsoft.VisualStudio.TextManager.Interop.ParameterTextType
[in] 从指定类型的文本的 ParameterTextType 枚举的值返回。
返回值
类型:System.IntPtr
如果成功,则返回一封送的指向该请求的字符串;否则,返回空值。
实现
IVsMethodData.GetParameterText(Int32, Int32, ParameterTextType)
备注
此方法用于该文本与参数的访问。这包括该参数名称、说明和说明。
此方法是 GetParameterText 方法的实现。 IVsMethodData 接口的。
该基方法调用 Methods 对象的 GetParameterInfo 方法 (传递给 Refresh 方法) 指定的方法签名和参数的然后返回参数文本的每种类型的相应字符串。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。