Using API to synchronize documents |
In special cases, you may need to use Kentico CMS API to perform your own synchronization process. There are several methods you can use to work with synchronization.
Here is an example code how to synchronize the content of the document “/Home” to server “Staging.Target1”:
[C#]
You can also use low level operations from TaskInfoProvider, SynchronizationInfoProvider and ServerInfoProvider to achieve synchronization, but previous methods should be enough to perform any simple synchronization actions.
The following example shows how you can synchronize the administrator user account. Synchronization of any other objects is done the same way using the API, as all objects implement the IInfoObject interface.
[C#]
|