This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IReplica Interface > IReplica.ReplicaID Property (ArcObjects .NET 10.5 SDK) |
The ID of the replica.
[Visual Basic .NET] Public ReadOnly Property ReplicaID As Integer
[C#] public int ReplicaID {get;}
[C++]
HRESULT get_ReplicaID(
long* rID
);
[C++]
Parameters rID [out, retval] rID is a parameter of type long
This ReplicaID identifies a check-out in a geodatabase. It is unique only within the geodatabase and not across the master and the check-out geodatabases. For example, the master can have a ReplicaID of 1806 while the check-out geodatabase has a ReplicaID of 1 for the same check-out.
The ParentID property can be used in the check-out geodatabase to find the corresponding ReplicaID in the master geodatabase.
The master geodatabase of a check-out returns -1 for ParentID property. An alternative is to use the ReplicaGuid property, which uniquely identifies the check-out and has the same value in the master and check-out geodatabases.