IVsTextBufferCoordinator.EnableReplication 方法

启用从主程序的辅助缓冲区的复制到辅助缓冲区和复制到 main。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

语法

声明
Function EnableReplication ( _
    bcrd As UInteger, _
    fEnable As Integer _
) As Integer
int EnableReplication(
    uint bcrd,
    int fEnable
)
int EnableReplication(
    [InAttribute] unsigned int bcrd, 
    [InAttribute] int fEnable
)
abstract EnableReplication : 
        bcrd:uint32 * 
        fEnable:int -> int
function EnableReplication(
    bcrd : uint, 
    fEnable : int
) : int

参数

  • fEnable
    类型:Int32

    [in] 非零 (TRUE) 以在指定的方向复制;否则,对复制禁用零 (0)FALSE)。

返回值

类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。

备注

COM 签名

从 singlefileeditor.idl:

HRESULT EnableReplication(
   [in] DWORD bcrd,
   [in] BOOL  fEnable
);

尽管默认方向主要到辅助启用,当缓冲区协调员到在创建对象时,不要假定特定方向上启用或禁用。 只有一个方向中一次启用 (即方向通常互斥)。

.NET Framework 安全性

请参阅

参考

IVsTextBufferCoordinator 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间