Export schema info.
[Visual Basic .NET] Public Sub ExportSchema ( _ ByVal exportFileName As String, _ ByVal Replica As IReplica _ )
[C#] public void ExportSchema ( string exportFileName, IReplica Replica );
[C++]
HRESULT ExportSchema(
BSTR exportFileName,
IReplica* Replica
);
[C++]Parameters
exportFileName [in] exportFileName is a parameter of type BSTR Replica [in]Replica is a parameter of type IReplica
Product Availability
Remarks
The ExportSchema method exports a replicas schema to an XML file.
ExportFileName is the XML file to be created and Replica defines the replica from which to export the schema.
The exportFileName is the string name of the replica schema changes file (XML) that will be created. The Replica parameter takes a Replica object for the replica to export the schema from. See the Replica coclass for more information.
Replica schema cannot be exported from check-out parent replicas or one way child replicas. All other replica types are supported.
Replica schema can only be exported from a replica that can synchronize it's changes with it's relative replica. This includes check-out replicas (child replicas only), two way replicas (both parent and child replicas), and one way parent replicas. Ultimately, this replica schema document can be used to compare and import schema differences into the relative replica. If a relatives replica cannot receive data changes, it also can not apply schema changes. Therefore we do not allow exporting replica schema in the first place.