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


IExportDataChanges2.ReExportDataChanges Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabaseDistributed)  

IExportDataChanges2.ReExportDataChanges Method

Exports the edits to a delta file.

[Visual Basic .NET]
Public Sub ReExportDataChanges ( _
    ByVal exportFileName As String, _
    ByVal exportOption As esriExportDataChangesOption, _
    ByVal SourceReplica As IReplica2, _
    ByVal GenOption As esriReExportGenerationsOption, _
    ByVal OverwriteIfExists As Boolean, _
    ByVal Compressed As Boolean, _
    ByVal BinaryGeometry As Boolean _
)
[C#]
public void ReExportDataChanges (
    string exportFileName,
    esriExportDataChangesOption exportOption,
    IReplica2 SourceReplica,
    esriReExportGenerationsOption GenOption,
    bool OverwriteIfExists,
    bool Compressed,
    bool BinaryGeometry
);
[C++]
HRESULT ReExportDataChanges(
  BSTR exportFileName,
  esriExportDataChangesOption exportOption,
  IReplica2* SourceReplica,
  esriReExportGenerationsOption GenOption,
  VARIANT_BOOL OverwriteIfExists,
  VARIANT_BOOL Compressed,
  VARIANT_BOOL BinaryGeometry
);
[C++]

Parameters exportFileName [in] exportFileName is a parameter of type BSTR exportOption [in]
exportOption is a parameter of type esriExportDataChangesOption SourceReplica [in]
SourceReplica is a parameter of type IReplica2 GenOption [in]
GenOption is a parameter of type esriReExportGenerationsOption OverwriteIfExists [in] OverwriteIfExists is a parameter of type VARIANT_BOOL Compressed [in] Compressed is a parameter of type VARIANT_BOOL BinaryGeometry [in] BinaryGeometry is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

The ReExportDataChanges method exports previously sent edits (unacknowledged edits) from a two-way or one-way replica to a delta file (data change message).  New edits performed since sending the most recent data change message will not be included.  To export both unacknowledged and new data changes you must use the ExportDataChanges2 method.  See the DataChangesExporter and the ReplicaDataChanges coclasses for more information.

The exportfilename parameter is the name of the data changes file to create. 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 sourcereplica parameter identifies the replica which is the source of the data changes. 

The genoption parameter takes an esriReExportGenerationsOption to indicate what data changes will be reexported.   If esriReExportGenerationsAllUnAcknowledged is specified, all unacknowledged edits from all previously sent data change messages will be reexported.  If esriReExportGenerationsLastUnAcknowledged is specified, only those unacknowledged edits from the most recently exported data change message will be reexported. See the esriReExportGenerationsOption enumeration for more information.

The overwriteexists parameter indicates if the target delta file will be overwritten during the export.

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 ReExportDataChanges2 method only applies to replicas which have sent data change messages which have not been acknowledged.  This can include replicas in the Sending Data state, which have previously sent a data change message, as well as replicas who have just transitioned into a Receiving Data state after exporting a data change switch message (lastsend parameter=TRUE).  See the ExportDataChanges2 method for more information.

See Also

IExportDataChanges2 Interface