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 _
public void RemoveClass (
    int index

Product Availability

Available with ArcGIS Desktop.


This method has been depreciated in favor of IMapTopology2.RemoveLayer

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;
[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
  End Sub

See Also

IMapTopology Interface