Udostępnij za pośrednictwem


IVsTextBufferCoordinator.EnableReplication(UInt32, Int32) Method

Definition

Enables replication from primary to secondary buffer and replication from the secondary buffer to the primary.

public:
 int EnableReplication(System::UInt32 bcrd, int fEnable);
public:
 int EnableReplication(unsigned int bcrd, int fEnable);
int EnableReplication(unsigned int bcrd, int fEnable);
public int EnableReplication (uint bcrd, int fEnable);
abstract member EnableReplication : uint32 * int -> int
Public Function EnableReplication (bcrd As UInteger, fEnable As Integer) As Integer

Parameters

bcrd
UInt32

[in] A value from the BufferCoordinatorReplicationDirection enumeration describing the direction of replication to be enabled/disabled.

fEnable
Int32

[in] Nonzero (TRUE) to enable replication in the specified direction; otherwise, zero (FALSE) to disable replication.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

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

Although the default direction of primary to secondary is enabled when the buffer coordinator object is created, do not assume a particular direction is enabled or disabled. Only one direction can be enabled at a time (that is, the directions are typically mutually exclusive).

Applies to