Interface IMetadataSynchronizerManager
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that control which metadata synchronizers are used to update metadata.
[Guid("7D41E96F-9216-4F4B-9F9D-7A524AECFBCC")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IMetadataSynchronizerManager
Remarks
The IMetadataSynchronizerManager Interface is available from the MetadataSynchronizer CoClass. The interface allows you to enable or disable any of the registered metadata synchronizers.
Additional information on this subject can be found in the Technical Paper "Creating a Custom Metadata Synchronizer", May 2001.
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.
Properties
NumSynchronizers
The number of available synchronizers.
int NumSynchronizers { get; }
Property Value
Methods
GetEnabled(int)
Indicates whether the Nth synchronizer is enabled.
bool GetEnabled(int Index)
Parameters
Indexint
Returns
GetSynchronizer(int)
Gets the nth synchronizer.
IMetadataSynchronizer GetSynchronizer(int Index)
Parameters
Indexint
Returns
Remarks
The GetSynchronizer method provides a reference to the IMetadataSynchronizer object.
Because the GetSynchronizer method uses an index to get the desired synchronizer, the IMetadataSynchronizerManager::NumSynchronizers property and IMetadataSynchronizer::Name are often used to first specify the metadata sychronizer of choice.
SetEnabled(int, bool)
Set the synchronizer to be enabled or disabled.
void SetEnabled(int Index, bool Enabled)
Parameters
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.