ArcObjects Library Reference (GeoDatabaseDistributed)  

IReplicasExporter.ExportReplicasInfo Method

Exports the information for the replicas in a geodatabase into an output feature class.

[Visual Basic .NET]
Public Function ExportReplicasInfo ( _
    ByVal pFromWS As IWorkspace, _
    ByVal pDestWS As IWorkspace, _
    ByVal fcName As String, _
    ByVal SR As ISpatialReference _
) As IFeatureClass
[C#]
public IFeatureClass ExportReplicasInfo (
    IWorkspace pFromWS,
    IWorkspace pDestWS,
    string fcName,
    ISpatialReference SR
);
[C++]
HRESULT ExportReplicasInfo(
  IWorkspace* pFromWS,
  IWorkspace* pDestWS,
  BSTR fcName,
  ISpatialReference* SR,
  IFeatureClass** ppFC
);
[C++]

Parameters

pFromWS [in]

  pFromWS is a parameter of type IWorkspace

pDestWS [in]

  pDestWS is a parameter of type IWorkspace

fcName [in]   fcName is a parameter of type BSTR SR [in]

  SR is a parameter of type ISpatialReference

ppFC [out, retval]

  ppFC is a parameter of type IFeatureClass

Product Availability

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

Remarks

The ExportReplicasInfo method exports the geometries of all replicas in a geodatabase into an output feature class.  The output feature class has one row in the feature class per replica in the geodatabase. In each row, the replica geometry that is used as a filter for the replica is stored in the shape column.  Each replica property is stored in separate columns. These replica properties include information stored about the replica such as the replicas id, owner, name, state, role, the replica type.  You can query the footprint for information, such as finding all replicas waiting to receive messages, or all replicas owned by a particular user.

The shape column always stores polygons. If another geometry type (i.e. a point or a line) is used as the replica geometry, it is buffered and the buffer is stored in the footprint feature class. If no replica geometry was used, a polygon covering the entire extent of the replica is stored in the shape column.

The ExportReplicasInfo method returns a feature class.  The pFromWS is the workspace of the replica geodatabase.  The pDestWS is the destination workspace for the output feature class. The fcName is the name of the output feature class.

The SR parameter defines the spatial reference of the output feature class.  If the SR is empty, the spatial reference will be that of the first replica that is something other than unknown. Unknown will be used if the SR parameter is empty and all replicas have an unknown spatial reference. If only some of the replicas have an unknown spatial reference, a null replica geometry is stored for these replicas.

 

 


 

 

 

 

See Also

IReplicasExporter Interface