SyncNamingContext method of the MSAD_ReplNeighbor class

Calls the DsReplicaSync function that synchronizes a destination naming context with one of its sources.

Syntax

void SyncNamingContext(
  [in] uint32 Options
);

Parameters

Options [in]

Additional data that determines how the method processes the request. This parameter can be a combination of the following values.

DS_REPSYNC_ADD_REFERENCE

Causes the source directory system agent (DSA) to verify that the local DSA is present in the source replicates-to list. If the local DSA is not present, it is added. This ensures that the source sends change notifications.

DS_REPSYNC_ALL_SOURCES

This value is not supported.

Windows Server 2008 R2, Windows Server 2008 and Windows Server 2003: Synchronizes from all sources.

DS_REPSYNC_ASYNCHRONOUS_OPERATION

Performs this operation asynchronously.

Windows Server 2008 R2, Windows Server 2008 and Windows Server 2003: Required when using DS_REPSYNC_ALL_SOURCES.

DS_REPSYNC_FORCE

Synchronizes even if the link is currently disabled.

DS_REPSYNC_FULL

Synchronizes starting from the first Update Sequence Number (USN).

DS_REPSYNC_INTERSITE_MESSAGING

Synchronizes using an ISM.

DS_REPSYNC_NO_DISCARD

Does not discard this synchronization request, even if a similar synchronization is pending.

DS_REPSYNC_PERIODIC

Indicates that this operation is a periodic synchronization request that is scheduled by the administrator.

DS_REPSYNC_URGENT

Indicates that this operation is a notification of an update that is marked as urgent.

DS_REPSYNC_WRITEABLE

Indicates that this replica is writable. If this flag is not set, the replica is read-only.

Return value

This method does not return a value.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\MicrosoftActiveDirectory
MOF
Replprov.mof
DLL
Replprov.dll

See also

MSAD_ReplNeighbor