VsTextManagerClass.RegisterBuffer Method
Registers a text buffer with the text manager.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaración
Public Overridable Function RegisterBuffer ( _
pBuffer As IVsTextBuffer _
) As Integer
public virtual int RegisterBuffer(
IVsTextBuffer pBuffer
)
public:
virtual int RegisterBuffer(
[InAttribute] IVsTextBuffer^ pBuffer
)
abstract RegisterBuffer :
pBuffer:IVsTextBuffer -> int
override RegisterBuffer :
pBuffer:IVsTextBuffer -> int
public function RegisterBuffer(
pBuffer : IVsTextBuffer
) : int
Parameters
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer
[in] Pointer to the IVsTextBuffer interface to register.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsTextManager.RegisterBuffer(IVsTextBuffer)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.