ReplicationConnection Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ReplicationConnection class.
Overloads
ReplicationConnection(DirectoryContext, String, DirectoryServer) |
Initializes a new instance of the ReplicationConnection class, using the specified context, name, and source server. |
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule) |
Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, and schedule. |
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectoryTransportType) |
Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, and transport type. |
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule, ActiveDirectoryTransportType) |
Initializes a new instance of the ReplicationConnection class, using the specified context, name, source server, schedule, and transport type. |
ReplicationConnection(DirectoryContext, String, DirectoryServer)
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
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)
Parameters
- context
- 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
A DirectoryServer object that identifies the source server of the connection.
Exceptions
A call to the underlying directory service resulted in an error.
The target server is either busy or unavailable.
The target of the context
parameter is not a domain controller or AD LDS instance.
-or-
sourceServer
is invalid or an empty string.
-or-
The target specified in the context
parameter does not match the server type specified in the sourceServer
parameter. The servers must both be either domain controllers or AD LDS instances.
-or-
The servers specified in the context
and sourceServer
parameters are domain controllers, but are not in the same forest.
-or-
The servers specified in the context
and sourceServer
parameters are AD LDS instances, but do not belong to the same configuration set.
context
or sourceServer
is null
.
The credentials that were supplied are not valid.
See also
Applies to
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule)
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
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);
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)
Parameters
- context
- 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
A DirectoryServer object that identifies the source server of the connection.
- schedule
- ActiveDirectorySchedule
A ActiveDirectorySchedule object that specifies when the source is available for replication.
Exceptions
A call to the underlying directory service resulted in an error.
The target server is either busy or unavailable.
The target of the context
parameter is not a domain controller or AD LDS instance.
-or-
sourceServer
is invalid or an empty string.
-or-
The target specified in the context
parameter does not match the server type specified in the sourceServer
parameter. The servers must both be either domain controllers or AD LDS instances.
-or-
The servers specified in the context
and sourceServer
parameters are domain controllers, but are not in the same forest.
-or-
The servers specified in the context
and sourceServer
parameters are AD LDS instances, but do not belong to the same configuration set.
context
, sourceServer
or schedule
is null
.
The credentials that were supplied are not valid.
See also
Applies to
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectoryTransportType)
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
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)
Parameters
- context
- 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
A DirectoryServer object that identifies the source server of the connection.
- transport
- ActiveDirectoryTransportType
One of the ActiveDirectoryTransportType members that specifies the transport type of the connection.
Exceptions
A call to the underlying directory service resulted in an error.
The target server is either busy or unavailable.
The target of the context
parameter is not a domain controller or AD LDS instance.
-or-
sourceServer
is invalid or an empty string.
-or-
The target specified in the context
parameter does not match the server type specified in the sourceServer
parameter. The servers must both be either domain controllers or AD LDS instances.
-or-
The servers specified in the context
and sourceServer
parameters are domain controllers, but are not in the same forest.
-or-
The servers specified in the context
and sourceServer
parameters are AD LDS instances, but do not belong to the same configuration set.
context
or sourceServer
is null
.
The credentials that were supplied are not valid.
transport
is not a valid ActiveDirectoryTransportType value.
context
is an AD LDS instance and transport
is Smtp, which is not supported.
See also
Applies to
ReplicationConnection(DirectoryContext, String, DirectoryServer, ActiveDirectorySchedule, ActiveDirectoryTransportType)
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
- Source:
- ReplicationConnection.cs
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);
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)
Parameters
- context
- 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
A DirectoryServer object that identifies the source server of the connection.
- schedule
- ActiveDirectorySchedule
A ActiveDirectorySchedule object that specifies when the source is available for replication.
- transport
- ActiveDirectoryTransportType
One of the ActiveDirectoryTransportType members that specifies the transport type of the connection.
Exceptions
A call to the underlying directory service resulted in an error.
The target server is either busy or unavailable.
The target of the context
parameter is not a domain controller or AD LDS instance.
-or-
sourceServer
is invalid or an empty string.
-or-
The target specified in the context
parameter does not match the server type specified in the sourceServer
parameter. The servers must both be either domain controllers or AD LDS instances.
-or-
The servers specified in the context
and sourceServer
parameters are domain controllers, but are not in the same forest.
-or-
The servers specified in the context
and sourceServer
parameters are AD LDS instances, but do not belong to the same configuration set.
context
, sourceServer
or schedule
is null
.
The credentials that were supplied are not valid.
transport
is not valid.
context
is an AD LDS instance and transport
is Smtp, which is not supported.