This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspaceReplicasAdmin Interface > IWorkspaceReplicasAdmin.RegisterReplica Method (ArcObjects .NET 10.5 SDK) |
Creates new replica information.
[Visual Basic .NET] Public Function RegisterReplica ( _ ByVal Replica As IReplica _ ) As Integer
[C#] public int RegisterReplica ( IReplica Replica );
[C++]
HRESULT RegisterReplica(
IReplica* Replica,
long* ReplicaID
);
[C++]
Parameters Replica [in]
Replica is a parameter of type IReplica ReplicaID [out, retval] ReplicaID is a parameter of type long
The RegisterReplica method creates new metadata for a replica. This method does not create the check-out version or the SYNC version in ArcSDE geodatabases.
To register a new replica, you must first call the IReplicaEdit::Init to initialize a new replica from an existing one. This ensures that the new replica will have an appropriate ReplicaID and ReplicaGUID.