This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > GeoDatabaseDistributed > ESRI.ArcGIS.GeoDatabaseDistributed > Interfaces > IG > IGeoDataServer Interface > IGeoDataServer.CompareReplicaSchema Method (ArcObjects .NET 10.4 SDK) |
Compares the schema of a replica with that of its relative, and returns a schema changes XML document.
[Visual Basic .NET] Public Function CompareReplicaSchema ( _ ByVal relativeReplicaSchemaDoc As IGDSData, _ ByVal TransportType As esriGDSTransportType _ ) As IGDSData
[C#] public IGDSData CompareReplicaSchema ( IGDSData relativeReplicaSchemaDoc, esriGDSTransportType TransportType );
[C++]
HRESULT CompareReplicaSchema(
IGDSData* relativeReplicaSchemaDoc,
esriGDSTransportType TransportType,
IGDSData** schemaChangesDoc
);
[C++]
Parameters relativeReplicaSchemaDoc [in]
relativeReplicaSchemaDoc is a parameter of type IGDSData TransportType [in]
TransportType is a parameter of type esriGDSTransportType schemaChangesDoc [out, retval]
schemaChangesDoc is a parameter of type IGDSData
The CompareReplicaSchema method is used to compare a replicas schema to its relative replicas schema and returns a schema changes XML document.
This method should be used in conjunction with the IGeoDataServer::ImportReplicaSchemaChanges method to apply the schema changes.
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.
The relativeReplicaSchemaDoc parameter takes a reference to a GDSData object for the replica schema file of the relative replica. This file must first be created for the relative replica before executing this method. See the IGeoDataServer::ExportReplicaSchema for information on how to generate this file.
This method returns a GDSData object for the schema changes XML document. See the GDSData coclass for more information.