GPReplicaOptions

A class that defines replica options such as the type of replica and the connection strings to the geodatabases involved.

Property

Type

Description

AccessType

esriReplicaAccessType

When creating a 2 way or 1 way replica, this property defines which to create.

ChildConnectionString

string

Set this property to the connection string for the ArcSDE geodatabase or the geodata service referencing the ArcSDE geodatabase that will host the child replica. Setting the property stores the connection string with the parent replica. This allows you to synchronize without having to ask for the child replicas geodatabase when synchronizing from the parent.

ChildReconcilePolicy

esriReplicaReconcilePolicyType

For the current release of ArcGIS, the only valid value for this property is "esriReplicaResolveConflictsNone". When creating a replica, an error occurs if you try to use different enumeration value.

IncludeMapLayers

bool

Set to True if you want to include the layers from the source when creating a replica.

IsChildFirstSender

bool

Set to True to make the child replica's status data sender when the replica is first created. Applies for 2 way replicas only.

ParentConnectionString

string

Set this property to the connection string for the ArcSDE geodatabase or the geodata service referencing the ArcSDE geodatabase that will host the parent replica. Setting the property stores the connection string with the child replica. This allows you to synchronize without having to ask for the parent replicas geodatabase when synchronizing from the child.

ParentReconcilePolicy

esriReplicaReconcilePolicyType

For the current release of ArcGIS, the only valid value for this property is "esriReplicaResolveConflictsNone". When creating a replica, an error occurs if you try to use a different enumeration value.

RegisterReplicaOnly

bool

Set to True if the data has been pre-copied to the target and you want to use the register replica only option.

UseArchiving

bool

Set to True if the when creating a 1 way replica and you want to use archiving instead of versioning to track changes.

Remarks

When creating a replica, the GPReplicaOptions define replica options such as the type of replica and the connection strings to the geodatabases involved. This is used with the CreateReplica method with geodata services.

2/28/2020