大网数据广告活动
域与目录服务

SyncNamingContext method of the MSAD_ReplNeighbor class

· 52CE 我爱测

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

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

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。