This document is archived and information here might be outdated.  Recommended version.


IMetadataSynchronizerManager.SetEnabled Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IMetadataSynchronizerManager.SetEnabled Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The SetEnabled method sets the enabled/disabled state of the synchronizer referenced by the index passed in to the first argument.  

Remarks

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.

See Also

IMetadataSynchronizerManager Interface