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


IGeoDataServer.ExportReplicaSchema Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabaseDistributed)  

IGeoDataServer.ExportReplicaSchema Method

Exports the schema of a replica to an Xml document.

[Visual Basic .NET]
Public Function ExportReplicaSchema ( _
    ByVal ReplicaName As String, _
    ByVal TransportType As esriGDSTransportType _
) As IGDSData
[C#]
public IGDSData ExportReplicaSchema (
    string ReplicaName,
    esriGDSTransportType TransportType
);
[C++]
HRESULT ExportReplicaSchema(
  BSTR ReplicaName,
  esriGDSTransportType TransportType,
  IGDSData** replicaSchemaDoc
);
[C++]

Parameters ReplicaName [in] ReplicaName is a parameter of type BSTR TransportType [in]
TransportType is a parameter of type esriGDSTransportType replicaSchemaDoc [out, retval]
replicaSchemaDoc is a parameter of type IGDSData

Product Availability

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

Remarks

The ExportReplicaSchema method exports the schema of a replica in XML file.

This method can be used in conjunction with the IGeoDataServer::CompareReplicaSchema method on the relative replica to compare the schemas between a replica pair.  The IGeoDataServer::ImportReplicaSchema method can then be used to apply those schema changes to the relative replica database. 

The ReplicaName is the name of the replica. The TransportType indicates the desired transport type.  Use esriGDSTransportTypeURL to place the output in a file in the virtual output directory. Use esriGDSTransportTypeEmbedded to have the results embedded in the output GDSData object. If no virtual output directory exists, the results will be embedded regardless of the value set for this parameter.

This method returns a GDSData object. See the GDSData coclass for more information.

See Also

IGeoDataServer Interface