ReplicationConnection 构造函数
定义
初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class.
重载
| 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, ActiveDirectoryTransportType) |
使用指定的上下文、名称、源服务器和传输类型初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, and transport type. |
| 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)
使用指定的上下文、名称和源服务器初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, and source server.
public:
ReplicationConnection(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ name, System::DirectoryServices::ActiveDirectory::DirectoryServer ^ sourceServer);
public ReplicationConnection (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string name, System.DirectoryServices.ActiveDirectory.DirectoryServer sourceServer);
new System.DirectoryServices.ActiveDirectory.ReplicationConnection : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * System.DirectoryServices.ActiveDirectory.DirectoryServer -> System.DirectoryServices.ActiveDirectory.ReplicationConnection
Public Sub New (context As DirectoryContext, name As String, sourceServer As DirectoryServer)
参数
- context
- DirectoryContext
一个 DirectoryContext 对象,它包含用来建立复制连接的目标和凭据。A DirectoryContext object that contains the target and credentials with which to establish a replication connection.
- name
- String
连接的用户定义名称。The user-defined name of the connection.
- sourceServer
- DirectoryServer
一个 DirectoryServer 对象,它标识连接的源服务器。A DirectoryServer object that identifies the source server of the connection.
例外
对基础目录服务的调用导致了错误。A call to the underlying directory service resulted in an error.
目标服务器忙或不可用。The target server is either busy or unavailable.
context 参数的目标不是域控制器或 AD LDS 实例。The target of the context parameter is not a domain controller or AD LDS instance.
- 或 --or-
sourceServer 无效或为空字符串。sourceServer is invalid or an empty string.
- 或 --or-
context 参数中指定的目标与 sourceServer 参数中指定的服务器类型不匹配。The target specified in the context parameter does not match the server type specified in the sourceServer parameter. 服务器必须都是域控制器或 AD LDS 实例。The servers must both be either domain controllers or AD LDS instances.
- 或 --or-
context 和 sourceServer 参数中指定的服务器都是域控制器,但是不在相同的林中。The servers specified in the context and sourceServer parameters are domain controllers, but are not in the same forest.
- 或 --or-
context 和 sourceServer 参数中指定的服务器均为 AD LDS 实例,但它们不属于相同的配置集。The servers specified in the context and sourceServer parameters are AD LDS instances, but do not belong to the same configuration set.
context 或 sourceServer 为 null。context or sourceServer is null.
所提供的凭据无效。The credentials that were supplied are not valid.
另请参阅
适用于
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule)
使用指定的上下文、名称、源服务器和计划初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, and schedule.
public:
ReplicationConnection(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ name, System::DirectoryServices::ActiveDirectory::DirectoryServer ^ sourceServer, System::DirectoryServices::ActiveDirectory::ActiveDirectorySchedule ^ schedule);
public ReplicationConnection (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string name, System.DirectoryServices.ActiveDirectory.DirectoryServer sourceServer, System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule schedule);
new System.DirectoryServices.ActiveDirectory.ReplicationConnection : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * System.DirectoryServices.ActiveDirectory.DirectoryServer * System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule -> System.DirectoryServices.ActiveDirectory.ReplicationConnection
Public Sub New (context As DirectoryContext, name As String, sourceServer As DirectoryServer, schedule As ActiveDirectorySchedule)
参数
- context
- DirectoryContext
一个 DirectoryContext 对象,它包含用来建立复制连接的目标和凭据。A DirectoryContext object that contains the target and credentials with which to establish a replication connection.
- name
- String
连接的用户定义名称。The user-defined name of the connection.
- sourceServer
- DirectoryServer
一个 DirectoryServer 对象,它标识连接的源服务器。A DirectoryServer object that identifies the source server of the connection.
- schedule
- ActiveDirectorySchedule
一个 ActiveDirectorySchedule 对象,它指定源何时可用于复制。A ActiveDirectorySchedule object that specifies when the source is available for replication.
例外
对基础目录服务的调用导致了错误。A call to the underlying directory service resulted in an error.
目标服务器忙或不可用。The target server is either busy or unavailable.
context 参数的目标不是域控制器或 AD LDS 实例。The target of the context parameter is not a domain controller or AD LDS instance.
- 或 --or-
sourceServer 无效或为空字符串。sourceServer is invalid or an empty string.
- 或 --or-
context 参数中指定的目标与 sourceServer 参数中指定的服务器类型不匹配。The target specified in the context parameter does not match the server type specified in the sourceServer parameter. 服务器必须都是域控制器或 AD LDS 实例。The servers must both be either domain controllers or AD LDS instances.
- 或 --or-
context 和 sourceServer 参数中指定的服务器都是域控制器,但是不在相同的林中。The servers specified in the context and sourceServer parameters are domain controllers, but are not in the same forest.
- 或 --or-
context 和 sourceServer 参数中指定的服务器均为 AD LDS 实例,但它们不属于相同的配置集。The servers specified in the context and sourceServer parameters are AD LDS instances, but do not belong to the same configuration set.
context、sourceServer 或 schedule 为 null。context, sourceServer or schedule is null.
所提供的凭据无效。The credentials that were supplied are not valid.
另请参阅
适用于
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectoryTransportType)
使用指定的上下文、名称、源服务器和传输类型初始化 ReplicationConnection 类的新实例。Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, and transport type.
public:
ReplicationConnection(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ name, System::DirectoryServices::ActiveDirectory::DirectoryServer ^ sourceServer, System::DirectoryServices::ActiveDirectory::ActiveDirectoryTransportType transport);
public ReplicationConnection (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string name, System.DirectoryServices.ActiveDirectory.DirectoryServer sourceServer, System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType transport);
new System.DirectoryServices.ActiveDirectory.ReplicationConnection : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * System.DirectoryServices.ActiveDirectory.DirectoryServer * System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType -> System.DirectoryServices.ActiveDirectory.ReplicationConnection
Public Sub New (context As DirectoryContext, name As String, sourceServer As DirectoryServer, transport As ActiveDirectoryTransportType)
参数
- context
- DirectoryContext
一个 DirectoryContext 对象,它包含用来建立复制连接的目标和凭据。A DirectoryContext object that contains the target and credentials to establish a replication connection with.
- name
- String
连接的用户定义名称。The user-defined name of the connection.
- sourceServer
- DirectoryServer
一个 DirectoryServer 对象,它标识连接的源服务器。A DirectoryServer object that identifies the source server of the connection.
- transport
- ActiveDirectoryTransportType
指定连接的传输类型的 ActiveDirectoryTransportType 成员之一。One of the ActiveDirectoryTransportType members that specifies the transport type of the connection.
例外
对基础目录服务的调用导致了错误。A call to the underlying directory service resulted in an error.
目标服务器忙或不可用。The target server is either busy or unavailable.
context 参数的目标不是域控制器或 AD LDS 实例。The target of the context parameter is not a domain controller or AD LDS instance.
- 或 --or-
sourceServer 无效或为空字符串。sourceServer is invalid or an empty string.
- 或 --or-
context 参数中指定的目标与 sourceServer 参数中指定的服务器类型不匹配。The target specified in the context parameter does not match the server type specified in the sourceServer parameter. 服务器必须都是域控制器或 AD LDS 实例。The servers must both be either domain controllers or AD LDS instances.
- 或 --or-
context 和 sourceServer 参数中指定的服务器都是域控制器,但是不在相同的林中。The servers specified in the context and sourceServer parameters are domain controllers, but are not in the same forest.
- 或 --or-
context 和 sourceServer 参数中指定的服务器均为 AD LDS 实例,但它们不属于相同的配置集。The servers specified in the context and sourceServer parameters are AD LDS instances, but do not belong to the same configuration set.
context 或 sourceServer 为 null。context or sourceServer is null.
所提供的凭据无效。The credentials that were supplied are not valid.
transport 不是有效的 ActiveDirectoryTransportType 值。transport is not a valid ActiveDirectoryTransportType value.
context 是 AD LDS 实例而 transport 是 Smtp,这是不受支持的。context is an AD LDS instance and transport is Smtp, which is not supported.
另请参阅
适用于
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.
public:
ReplicationConnection(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ name, System::DirectoryServices::ActiveDirectory::DirectoryServer ^ sourceServer, System::DirectoryServices::ActiveDirectory::ActiveDirectorySchedule ^ schedule, System::DirectoryServices::ActiveDirectory::ActiveDirectoryTransportType transport);
public ReplicationConnection (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string name, System.DirectoryServices.ActiveDirectory.DirectoryServer sourceServer, System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule schedule, System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType transport);
new System.DirectoryServices.ActiveDirectory.ReplicationConnection : System.DirectoryServices.ActiveDirectory.DirectoryContext * string * System.DirectoryServices.ActiveDirectory.DirectoryServer * System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule * System.DirectoryServices.ActiveDirectory.ActiveDirectoryTransportType -> System.DirectoryServices.ActiveDirectory.ReplicationConnection
Public Sub New (context As DirectoryContext, name As String, sourceServer As DirectoryServer, schedule As ActiveDirectorySchedule, transport As ActiveDirectoryTransportType)
参数
- context
- DirectoryContext
一个 DirectoryContext 对象,它包含用来建立复制连接的目标和凭据。A DirectoryContext object that contains the target and credentials with which to establish a replication connection.
- name
- String
连接的用户定义名称。The user-defined name of the connection.
- sourceServer
- DirectoryServer
一个 DirectoryServer 对象,它标识连接的源服务器。A DirectoryServer object that identifies the source server of the connection.
- schedule
- ActiveDirectorySchedule
一个 ActiveDirectorySchedule 对象,它指定源何时可用于复制。A ActiveDirectorySchedule object that specifies when the source is available for replication.
- transport
- ActiveDirectoryTransportType
指定连接的传输类型的 ActiveDirectoryTransportType 成员之一。One of the ActiveDirectoryTransportType members that specifies the transport type of the connection.
例外
对基础目录服务的调用导致了错误。A call to the underlying directory service resulted in an error.
目标服务器忙或不可用。The target server is either busy or unavailable.
context 参数的目标不是域控制器或 AD LDS 实例。The target of the context parameter is not a domain controller or AD LDS instance.
- 或 --or-
sourceServer 无效或为空字符串。sourceServer is invalid or an empty string.
- 或 --or-
context 参数中指定的目标与 sourceServer 参数中指定的服务器类型不匹配。The target specified in the context parameter does not match the server type specified in the sourceServer parameter. 服务器必须都是域控制器或 AD LDS 实例。The servers must both be either domain controllers or AD LDS instances.
- 或 --or-
context 和 sourceServer 参数中指定的服务器都是域控制器,但是不在相同的林中。The servers specified in the context and sourceServer parameters are domain controllers, but are not in the same forest.
- 或 --or-
context 和 sourceServer 参数中指定的服务器均为 AD LDS 实例,但它们不属于相同的配置集。The servers specified in the context and sourceServer parameters are AD LDS instances, but do not belong to the same configuration set.
context、sourceServer 或 schedule 为 null。context, sourceServer or schedule is null.
所提供的凭据无效。The credentials that were supplied are not valid.
transport 无效。transport is not valid.
context 是 AD LDS 实例而 transport 是 Smtp,这是不受支持的。context is an AD LDS instance and transport is Smtp, which is not supported.