从返回值列表的指定与功能。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function GetListText ( _
iIndex As Integer, _
<OutAttribute> ByRef pbstrText As String _
) As Integer
int GetListText(
int iIndex,
out string pbstrText
)
int GetListText(
[InAttribute] int iIndex,
[OutAttribute] String^% pbstrText
)
abstract GetListText :
iIndex:int *
pbstrText:string byref -> int
function GetListText(
iIndex : int,
pbstrText : String
) : int
参数
iIndex
类型:Int32[in] 检索的值的索引。
pbstrText
类型:String%[out] 返回包含请求的值的字符串。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr2.idl:
void IVsExpansionFunction::GetListText(
[in]long iIndex,
[out]const WCHAR** pbstrText
);
该返回的字符串必须继续在扩展功能对象的生存期或直到 ReleaseFunction 方法调用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。