This document is archived and information here might be outdated. Recommended version. |
Set the synchronizer to be enabled or disabled.
[Visual Basic .NET]
Public Sub SetEnabled ( _
ByVal Index As Integer, _
ByVal Enabled As Boolean _
)
[C#]
public void SetEnabled (
int Index,
bool Enabled
);
[C++]
HRESULT SetEnabled(
long Index,
VARIANT_BOOL Enabled
);
[C++] Parameters Index [in]
Index is a parameter of type long Enabled [in]
Enabled is a parameter of type bool
The SetEnabled method sets the enabled/disabled state of the synchronizer referenced by the index passed in to the first argument.
The Index parameter is used to indicate the specific metadata synchronizer.
The second argument, of data type boolean, sets the state of the synchronizer.
Note that enabling and disabling synchronizers through this interface is persisted across sessions. If changes are meant to be temporary, it's recommended that the current enabled status of each synchronizer be stored prior to any changes being made, then restored after.