This document is archived and information here might be outdated.  Recommended version.


IReplicaValidation.ValidateDeltaFile Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabaseDistributed)  

IReplicaValidation.ValidateDeltaFile Method

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

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

Parameters parentDB [in]
parentDB is a parameter of type IWorkspaceName ReplicaName [in] ReplicaName is a parameter of type BSTR DeltaFileName [in] DeltaFileName is a parameter of type BSTR sourceType [in]
sourceType is a parameter of type esriCheckInSourceType isValid [out, retval] isValid is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

The ValidateDeltaFile method validates a replica in a delta file.  Applies to check-out replicas, two way replicas or one way replicas.

This method takes a workspace for the parent workspace.  For check-out replicas this is the master geodatabase (now know as the parent replica geodatabase).  For two way or one way replicas this can be either the parent or child workspace.  The ReplicaName is the name of the replica.  The DeltaFileName is the path for the delta file. SourceType is the type of delta file used.  The delta file can be a delta geodatabase, delta file geodatabase, delta xml file, or a checkout geodatabase.  See the esriCheckInSourceType enumeration for more information.

 

[C#]

This Routine accepts a WorkspaceName object for the master geodatabase, a check-out name string and delta file name as a string. The sample is hard coded to work with delta XML files but can easily be changed to with delta databases.

public Boolean Delta_Validator(IWorkspaceName masterWorkspaceName, string checkOutName, string deltaFileName)
{
IReplicaValidation ireplicaValidator=new ReplicaValidatorClass();
Boolean valid=ireplicaValidator.ValidateDeltaFile(masterWorkspaceName, checkOutName, deltaFileName, esriCheckInSourceType.esriXMLDeltaFile);
return valid;
}

See Also

IReplicaValidation Interface | IReplicaValidation Interface