ReplicationConnection 类

定义

ReplicationConnection 类表示一个复制连接。The ReplicationConnection class represents a replication connection.

public ref class ReplicationConnection : IDisposable
public class ReplicationConnection : IDisposable
type ReplicationConnection = class
    interface IDisposable
Public Class ReplicationConnection
Implements IDisposable
继承
ReplicationConnection
实现

注解

在 Active Directory 域服务中, 复制连接由 NTDS 连接对象表示。In Active Directory Domain Services, a replication connection is represented by an NTDS-Connection object. 有关详细信息, 请参阅NTDS 连接For more information, see the NTDS-Connection.

构造函数

ReplicationConnection(DirectoryContext, String, DirectoryServer)

使用指定的上下文、名称和源服务器初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, and source server.

ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule)

使用指定的上下文、名称、源服务器和计划初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, and schedule.

ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule, ActiveDirectoryTransportType)

使用指定的上下文、名称、源服务器、计划和传输类型初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, schedule, and transport type.

ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectoryTransportType)

使用指定的上下文、名称、源服务器和传输类型初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, and transport type.

属性

ChangeNotificationStatus

获取或设置此复制连接的更改通知状态。Gets or sets the change notification status of this replication connection.

DataCompressionEnabled

获取或设置一个值,该值指示此复制连接是否压缩数据。Gets or sets a value indicating whether this replication connection compresses data.

DestinationServer

获取作为此复制连接的目标的服务器的 DNS 名称。Gets the DNS name of the server that is the destination of this replication connection.

Enabled

获取或设置一个值,该值指示此复制连接是否已启用。Gets or sets a value indicating whether this replication connection is enabled.

GeneratedByKcc

获取或设置一个值,该值指示此复制连接是否由知识一致性检查器 (KCC) 生成。Gets or sets a value indicating whether this replication connection was generated by the knowledge consistency checker (KCC).

Name

获取此复制连接的名称。Gets the name of this replication connection.

ReciprocalReplicationEnabled

获取或设置一个值,该值指示此复制连接是否支持相互复制。Gets or sets a value indicating whether this replication connection supports reciprocal replication.

ReplicationSchedule

获取或设置在其上源服务器可用于复制的计划。Gets or sets the schedule on which the source server is available for replication.

ReplicationScheduleOwnedByUser

获取或设置一个值,该值指示复制计划是否归该用户所有。Gets or sets a value indicating whether the replication schedule is owned by the user.

ReplicationSpan

获取此复制连接的跨度。Gets the span of this replication connection.

SourceServer

获取作为此复制连接的源的服务器的 DNS 名称。Gets the DNS name of the server that is the source of this replication connection.

TransportType

获取此复制连接使用的传输的类型。Gets the type of transport that is used by this replication connection.

方法

Delete()

删除此复制连接。Deletes this replication connection.

Dispose()

释放由对象拥有的非托管及托管资源。Releases the unmanaged and managed resources held by the object.

Dispose(Boolean)

释放由对象拥有的非托管资源(还可以选择释放托管资源)。Releases the unmanaged and, optionally, the managed resources, held by the object.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Finalize()

重写 Finalize() 方法。Overrides the Finalize() method.

FindByName(DirectoryContext, String)

检索与指定的目标上下文和名称相匹配的 ReplicationConnection 对象。Retrieves the ReplicationConnection object that matches the specified target context and name.

GetDirectoryEntry()

检索表示复制连接的 DirectoryEntry 对象。Retrieves a DirectoryEntry object that represents the replication connection.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Save()

将复制连接提交到服务器。Commits the replication connection to the server. 在调用此方法前,Active Directory 域服务中实际上不存在复制连接对象。The replication connection object does not actually exist in Active Directory Domain Services until this method is called.

ToString()

检索复制连接的名称。Retrieves the name of the replication connection.

安全性

DirectoryServicesPermission
需求值:LinkDemandDemand value: LinkDemand

适用于