ArcObjects Library Reference (EditorExt)  

IMapTopology.RemoveClass Method

Removes a feature class from this map topology. All existing topology elements will become invalid.

[Visual Basic .NET]
Public Sub RemoveClass ( _
    ByVal index As Integer _
)
[C#]
public void RemoveClass (
    int index
);

Product Availability

Available with ArcGIS Desktop.
[C#]
public void AddRemoveMapTopologyClass()
{
  UID extUid = new UIDClass();
  extUid.Value = "esriEditorExt.TopologyExtension";
  //You can get app from ICommand :: OnCreate() hook parameter
  ITopologyExtension topologyExt = app.FindExtensionByCLSID(extUid) as ITopologyExtension;
  IMapTopology mapTopology = topologyExt.MapTopology;
  mapTopology.AddClass(fc0);
  mapTopology.RemoveClass(0);
}
[Visual Basic .NET]
  Public Sub AddRemoveMapTopologyClass()
    'You can get app from ICommand :: OnCreate() hook parameter
    Dim extUid As UID = New UIDClass()
    extUid.Value = "esriEditorExt.TopologyExtension"
    Dim topologyExt As ITopologyExtension = TryCast(app.FindExtensionByCLSID(extUid), ITopologyExtension)
    Dim mapTopology As IMapTopology = topologyExt.MapTopology
    mapTopology.AddClass(fc0)
    mapTopology.RemoveClass(0)
  End Sub

See Also

IMapTopology Interface