共用方式為


IVsTextBufferCoordinator.GetPrimaryBuffer 方法

傳回的主要語言緩衝區。

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

語法

'宣告
Function GetPrimaryBuffer ( _
    <OutAttribute> ByRef ppBuffer As IVsTextLines _
) As Integer
int GetPrimaryBuffer(
    out IVsTextLines ppBuffer
)
int GetPrimaryBuffer(
    [OutAttribute] IVsTextLines^% ppBuffer
)
abstract GetPrimaryBuffer : 
        ppBuffer:IVsTextLines byref -> int
function GetPrimaryBuffer(
    ppBuffer : IVsTextLines
) : int

參數

傳回值

類型:Int32
如果成功的話,會傳回S_OK。 否則,會傳回錯誤碼。

備註

COM 簽章

從 singlefileeditor.idl:

HRESULT GetPrimaryBuffer(
   [out] IVsTextLines **ppBuffer
);

.NET Framework 安全性

請參閱

參考

IVsTextBufferCoordinator 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間