共用方式為


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 安全性

請參閱

參考

IVsCompletionSet 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間