获取指定项的说明在完成列表。
命名空间: Microsoft.VisualStudio.Package
程序集: 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 中)
Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
语法
声明
Public Function GetDescriptionText ( _
index As Integer, _
<OutAttribute> ByRef description As String _
) As Integer
public int GetDescriptionText(
int index,
out string description
)
参数
- index
类型:System.Int32
[in] 项索引访问声明。
- description
类型:System.String%
[in] 返回该声明或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果没有声明。
返回值
类型:System.Int32
如果成功,则返回; S_OK否则,返回错误。
实现
IVsCompletionSet.GetDescriptionText(Int32, String%)
备注
标题文本在工具提示通常显示在完成当前选定项列表旁。
此方法是 GetDescriptionText 方法的实现。 IVsCompletionSet 接口的。
向前基方法以 GetDescription 方法的调用传递给 Init 方法的 Declarations 对象。该基方法始终返回 S_OK成功代码。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。