IVsContainedLanguage.SetBufferCoordinator Method
Allows for a change in buffer coordinators on-the-fly.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
声明
Function SetBufferCoordinator ( _
pBC As IVsTextBufferCoordinator _
) As Integer
用法
Dim instance As IVsContainedLanguage
Dim pBC As IVsTextBufferCoordinator
Dim returnValue As Integer
returnValue = instance.SetBufferCoordinator(pBC)
int SetBufferCoordinator(
IVsTextBufferCoordinator pBC
)
int SetBufferCoordinator(
[InAttribute] IVsTextBufferCoordinator^ pBC
)
abstract SetBufferCoordinator :
pBC:IVsTextBufferCoordinator -> int
function SetBufferCoordinator(
pBC : IVsTextBufferCoordinator
) : int
Parameters
- pBC
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferCoordinator
[in] An IVsTextBufferCoordinator object representing the new buffer coordinator.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT IVsContainedLanguage::SetBufferCoordinator(
[in] IVsTextBufferCoordinator* pBC
);
.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.