IVsCompletionSet.GetDescriptionText 方法
傳回描述指定的項目,完成組中的文字。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetDescriptionText ( _
iIndex As Integer, _
<OutAttribute> ByRef pbstrDescription As String _
) As Integer
int GetDescriptionText(
int iIndex,
out string pbstrDescription
)
int GetDescriptionText(
[InAttribute] int iIndex,
[OutAttribute] String^% pbstrDescription
)
abstract GetDescriptionText :
iIndex:int *
pbstrDescription:string byref -> int
function GetDescriptionText(
iIndex : int,
pbstrDescription : String
) : int
參數
iIndex
類型:Int32[in]用來識別 [完成] 設定為提供說明文字中的項目索引。
pbstrDescription
類型:String%[] out傳回字串,包含描述文字。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsCompletionSet::GetDescriptionText(
[in] long iIndex,
[out] BSTR *pbstrDescription
);
檢視呼叫GetDescriptionText方法,以便更新完成設定的項目目前在檢視中顯示的說明文字。 一旦為每個完成組項目需要更新的檢視就會呼叫這個方法。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。