ArcObjects Library Reference (GeoDatabase)  

IWorkspaceReplicasAdmin.RegisterReplica Method

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

Product Availability

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

Remarks

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.

See Also

IWorkspaceReplicasAdmin Interface