ArcObjects Library Reference (GeoDatabaseDistributed)  

ISchemaChangesInit.Init Method

Initializes the object using the replica and the target replica workspace.

[Visual Basic .NET]
Public Sub Init ( _
    ByVal Replica As IReplica, _
    ByVal TargetWorkspaceName As IWorkspaceName _
)
[C#]
public void Init (
    IReplica Replica,
    IWorkspaceName TargetWorkspaceName
);
[C++]
HRESULT Init(
  IReplica* Replica,
  IWorkspaceName* TargetWorkspaceName
);
[C++]

Parameters

Replica [in]

  Replica is a parameter of type IReplica

TargetWorkspaceName [in]

  TargetWorkspaceName is a parameter of type IWorkspaceName

Product Availability

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

Remarks

The init method initializes the SchemaChanges object in a connected environment. Once the SchemaChanges object has been initialized, you can inspect schema differences between parent and child replicas.

The Replica parameter is the replica which is the source of the comparison.  The targetWorkspaceName is the workspace name of the relative replica to which you would like to compare the Replica schema to. 

For example, imagine you make a few schema changes to the child replica, such as dropping a table. and/or adding a field.  Now you would like to inspect the schema differences between the child and parent replica.  Pass in the Child replica for the Replica parameter and the parent replica workspace name as the targetWorkspaceName to initialize the schemaChanges object.  You may now use method ISchemaChanges::GetChanges method to inspect the schema differences.   See the SchemaChanges::ISchemaChanges interface for more information.  You can apply any schema differences to the replica associated with the targetWorkspaceName by using methods on the ISchemaChangeInfo interface.

See Also

ISchemaChangesInit Interface

.NET Related Topics

Getting a list of schema differences between replicas |