Replica access types.
Constant | Value | Description |
---|---|---|
esriReplicaAccessNone | 0 | Replica access is undefined. |
esriReplicaChildReadOnly | 1 | Read only child replica (1 way replica). |
esriReplicaParentReadOnly | 2 | Read only parent replica. |
esriReplicaBothReadWrite | 3 | Read write on both parent and child replica. |
esriReplicaParentOrChildReadOnly | 4 | Readonly replicas on either parent and child replica. |
Product Availability
Remarks
The esriReplicaAccessType enumeration contains values that represent different replica access types.
When creating a replica the access type is set on the GPReplicaOptions object. Both the IGeodataserver:CreateReplica method and IReplicationAgent::CreateReplica method takes a reference to a GPReplicaOptions object. See the GPreplicaOptions, Geodataserver and ReplicationAgent coclasses for more information.
The members of this enumeration are represented as follows:
- esriReplicaAccessNone = 0 - The child replica is a check-out replica.
- esriReplicaChildReadOnly = 1 - The child replica is read only. Data changes may only be synchronized from the parent replica to the child replica. Conflicts are not detected, so if there happens to be conflictings edits on the child database, the parent replicas edits will over-write the edits on synchronize.
- esriReplicaParentReadOnly = 2 - The parent replica is read only. Data changes may only be synchronized from the child replica to the parent replica. Conflicts are not detected, so if there happens to be conflictings edits on the parent database, the child replicas edits will over-write the edits on synchronize.
- esriReplicaBothReadWrite = 3 - Both the parent and child replicas can synchronize data changes with their relative replica.
- esriReplicaParentOrChildReadOnly = 4 - Used to retrieve whether the parent or child replica is read only. Can be useful in cases where you would otherwise use both esriReplicaChildReadOnly and esriReplicaParentReadOnly to find out whether the replica is a one-way replica.
You may retrieve the access type of an existing replica by querying the AccessType property. From a GPReplica this is available using the IGPReplica::AccessType property. If you have reference to a Replica object you can access this using IReplica2::AccessType property. See the GPReplica and Replica coclasses for more information.