ArcObjects Library Reference (GeoDatabaseDistributed)  

IReplicaValidation.ValidateReplicaPair Method

Indicates if the check-out in a check-out database is valid.

[Visual Basic .NET]
Public Function ValidateReplicaPair ( _
    ByVal parentDB As IWorkspaceName, _
    ByVal ReplicaName As String, _
    ByVal checkOutDB As IWorkspaceName _
) As Boolean
[C#]
public bool ValidateReplicaPair (
    IWorkspaceName parentDB,
    string ReplicaName,
    IWorkspaceName checkOutDB
);
[C++]
HRESULT ValidateReplicaPair(
  IWorkspaceName* parentDB,
  BSTR ReplicaName,
  IWorkspaceName* checkOutDB,
  VARIANT_BOOL* isValid
);
[C++]

Parameters

parentDB [in]

  parentDB is a parameter of type IWorkspaceName

ReplicaName [in]   ReplicaName is a parameter of type BSTR checkOutDB [in]

  checkOutDB is a parameter of type IWorkspaceName

isValid [out, retval]   isValid is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

The ValidateReplicaPair method validates a replica in a parent and child geodatabase.  Applies to check-out replicas and two way and one way replicas.  If FALSE is returned the replica is no longer valid.

This method takes both the parent and child workspaces, parentDB and checkoutDB.  ReplicaName is the name of the replica to validate. 

 

[C#]

This Routine accepts a WorkspaceName object for the master geodatabase, a check-out name string and the check-out workspace name as a string.  

     public Boolean CheckOut_Validator(IWorkspaceName masterWorkspaceName, string checkOutName, IWorkspaceName checkOutWorkspaceName)
{
IReplicaValidation replicaValidation = new ReplicaValidatorClass();
return replicaValidation.ValidateReplicaPair(masterWorkspaceName, checkOutName, checkOutWorkspaceName);
}

See Also

IReplicaValidation Interface | IReplicaValidation Interface