共用方式為


IVsSmartTagTipWindow.GetContextStream 方法

傳回的內容資料流。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop.8.0 (在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

語法

'宣告
Function GetContextStream ( _
    <OutAttribute> ByRef piPos As Integer, _
    <OutAttribute> ByRef piLength As Integer _
) As Integer
int GetContextStream(
    out int piPos,
    out int piLength
)
int GetContextStream(
    [OutAttribute] int% piPos, 
    [OutAttribute] int% piLength
)
abstract GetContextStream : 
        piPos:int byref * 
        piLength:int byref -> int
function GetContextStream(
    piPos : int, 
    piLength : int
) : int

參數

  • piPos
    類型:Int32%

    [] out資料流中的位置。

  • piLength
    類型:Int32%

    [] out資料流的長度。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr2.idl:

HRESULT IVsSmartTagTipWindow::GetContextStream(
   [out] long *piPos,
   [out] long *piLength
);

內容資料流是位置和文字中應該不會變模糊提示] 視窗中,但提示內容關聯的緩衝區長度。

.NET Framework 安全性

請參閱

參考

IVsSmartTagTipWindow 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間