This document is archived and information here might be outdated.  Recommended version.


esriReplicaAccessType Constants (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

esriReplicaAccessType Constants

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

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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:

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.

.NET Related Topics

How to create a replica in a connected environment | How to create a replica in a disconnected environment