ReplicationConnection ReplicationConnection ReplicationConnection ReplicationConnection Class

定義

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
繼承
ReplicationConnectionReplicationConnectionReplicationConnectionReplicationConnection
實作

備註

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(DirectoryContext, String, DirectoryServer) ReplicationConnection(DirectoryContext, String, DirectoryServer) 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(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule) ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule) 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(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule, ActiveDirectoryTransportType) ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule, ActiveDirectoryTransportType) 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(DirectoryContext, String, DirectoryServer, ActiveDirectoryTransportType) ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectoryTransportType) 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 ChangeNotificationStatus ChangeNotificationStatus ChangeNotificationStatus

取得或設定這個複寫連接的變更通知狀態。Gets or sets the change notification status of this replication connection.

DataCompressionEnabled DataCompressionEnabled DataCompressionEnabled DataCompressionEnabled

取得或設定值,表示這個複寫連接是否會壓縮資料。Gets or sets a value indicating whether this replication connection compresses data.

DestinationServer DestinationServer DestinationServer DestinationServer

取得這個複寫連接之目的地伺服器的 DNS 名稱。Gets the DNS name of the server that is the destination of this replication connection.

Enabled Enabled Enabled Enabled

取得或設定值,表示是否啟用這個複寫連接。Gets or sets a value indicating whether this replication connection is enabled.

GeneratedByKcc GeneratedByKcc GeneratedByKcc GeneratedByKcc

取得或設定值,表示這個複寫連接是否由認知一致性檢查程式 (KCC) 所產生。Gets or sets a value indicating whether this replication connection was generated by the knowledge consistency checker (KCC).

Name Name Name Name

取得這個複寫連接的名稱。Gets the name of this replication connection.

ReciprocalReplicationEnabled ReciprocalReplicationEnabled ReciprocalReplicationEnabled ReciprocalReplicationEnabled

取得或設定值,表示這個複寫連接是否支援互相複寫。Gets or sets a value indicating whether this replication connection supports reciprocal replication.

ReplicationSchedule ReplicationSchedule ReplicationSchedule ReplicationSchedule

取得或設定與來源伺服器可供複寫有關的排程。Gets or sets the schedule on which the source server is available for replication.

ReplicationScheduleOwnedByUser ReplicationScheduleOwnedByUser ReplicationScheduleOwnedByUser ReplicationScheduleOwnedByUser

取得或設定值,表示這個複寫排程是否為使用者所主控。Gets or sets a value indicating whether the replication schedule is owned by the user.

ReplicationSpan ReplicationSpan ReplicationSpan ReplicationSpan

取得這個複寫連接的範圍。Gets the span of this replication connection.

SourceServer SourceServer SourceServer SourceServer

取得這個複寫連接之來源伺服器的 DNS 名稱。Gets the DNS name of the server that is the source of this replication connection.

TransportType TransportType TransportType TransportType

取得這個複寫連接所使用的傳輸類型。Gets the type of transport that is used by this replication connection.

方法

Delete() Delete() Delete() Delete()

刪除這個複寫連接。Deletes this replication connection.

Dispose() Dispose() Dispose() Dispose()

釋放這個物件所持有的 Unmanaged 和 Managed 資源。Releases the unmanaged and managed resources held by the object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放這個物件所持有的 Unmanaged 資源,並選擇性地釋放這個物件所持有的 Managed 資源。Releases the unmanaged and, optionally, the managed resources, held by the object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

覆寫 Finalize() 方法。Overrides the Finalize() method.

FindByName(DirectoryContext, String) FindByName(DirectoryContext, String) FindByName(DirectoryContext, String) FindByName(DirectoryContext, String)

擷取符合指定目標內容和名稱的 ReplicationConnection 物件。Retrieves the ReplicationConnection object that matches the specified target context and name.

GetDirectoryEntry() GetDirectoryEntry() GetDirectoryEntry() GetDirectoryEntry()

擷取代表複寫連接的 DirectoryEntry 物件。Retrieves a DirectoryEntry object that represents the replication connection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Save() Save() Save() 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() ToString() ToString() ToString()

擷取複寫連接的名稱。Retrieves the name of the replication connection.

安全性

DirectoryServicesPermission
要求值: LinkDemandDemand value: LinkDemand

適用於