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


IExportDataChanges2.ExportDataChanges2 Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseDistributed > ESRI.ArcGIS.GeoDatabaseDistributed > Interfaces > IE > IExportDataChanges2 Interface > IExportDataChanges2.ExportDataChanges2 Method
ArcGIS Developer Help

IExportDataChanges2.ExportDataChanges2 Method

Exports the edits to a delta file.

[Visual Basic .NET]
Public Sub ExportDataChanges2 ( _
    ByVal exportFileName As String, _
    ByVal exportOption As esriExportDataChangesOption, _
    ByVal DataChanges As IDataChanges, _
    ByVal OverwriteIfExists As Boolean, _
    ByVal Compressed As Boolean, _
    ByVal BinaryGeometry As Boolean, _
    ByVal LastSend As Boolean _
)
[C#]
public void ExportDataChanges2 (
    string exportFileName,
    esriExportDataChangesOption exportOption,
    IDataChanges DataChanges,
    bool OverwriteIfExists,
    bool Compressed,
    bool BinaryGeometry,
    bool LastSend
);
[C++]
HRESULT ExportDataChanges2(
  BSTR exportFileName,
  esriExportDataChangesOption exportOption,
  IDataChanges* DataChanges,
  VARIANT_BOOL OverwriteIfExists,
  VARIANT_BOOL Compressed,
  VARIANT_BOOL BinaryGeometry,
  VARIANT_BOOL LastSend
);
[C++]
Parameters
exportFileName [in]

exportFileName is a parameter of type BSTR exportOption [in]
exportOption is a parameter of type esriExportDataChangesOption DataChanges [in]
DataChanges is a parameter of type IDataChanges* OverwriteIfExists [in]
OverwriteIfExists is a parameter of type bool Compressed [in]
Compressed is a parameter of type bool BinaryGeometry [in]
BinaryGeometry is a parameter of type bool LastSend [in]
LastSend is a parameter of type bool

Product Availability

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

Remarks

The ExportDataChanges2 method exports data changes from a version or from a check-out, one way or two way replica to a data changes file.

The exportFileName parameter is the name of the file that will be generated.  The exportoption parameter takes a member of the esridatachangesexportoption enumeration to determine whether the data changes file created will be XML, delta database, or a delta file geodatabase format. 

The datachanges parameter must reference a ReplicaDataChanges object to export edits from a mult-generation replica.  The overwriteexists parameter indicates if the target data changes file will be overwritten during the export. Setting this to TRUE will overwrite the data changes file if it already exists.  If you set this to FALSE and the data changes file already exists, the file will not be overwritten, and the export will not succeed. 

The Compressed parameter is TRUE the edits will be exported in compressed format.

The Binarygeometry parameter is used to specify binary or normalized geometry.  If set to TRUE, binary format will be used.

The LastSend parameter indicates whether there will be a change in the directionality of the data change flow between the replica pair.   The lastsend parameter should be set to TRUE if you no longer want to send data change messages to the relative, but instead want to receive edits from the relative.  If the lastsend parameter is set to TRUE, the source replica will transition from a Sending Data state to a Receiving Data state upon export of the data change message.  When the relative replica successfully imports this delta file, the relative replica will transition from a Receiving Data state to a Sending Data state.  

The ExportDataChanges2 method only applies to replicas in the Sending Data state.  The replica state can be determined by using the IReplica2::ReplicaState property. 

See Also

IExportDataChanges2 Interface