ArcObjects Library Reference (EditorExt)  

IMapTopology.Name Property

The name of this map topology.

[Visual Basic .NET]
Public Property Name As String
public string Name {get; set;}

Product Availability

Available with ArcGIS Desktop.


Name allows setting and getting the name of the MapTopology. For example the name is used is used by the Choose Topology dropdown list to identify this MapTopology.

public void MapTopologyName()
  UID extUid = new UIDClass();
  extUid.Value = "esriEditorExt.TopologyExtension";

  //You can get app from ICommand :: OnCreate() hook parameter
  ITopologyExtension topologyExt = m_app.FindExtensionByCLSID(extUid) as ITopologyExtension;
  IMapTopology mapTopology = topologyExt.MapTopology;
  mapTopology.Name = "MyMapTopology";  
[Visual Basic .NET]
  Public Sub MapTopologyName()
    '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.Name = "MyMapTopology"
  End Sub

See Also

IMapTopology Interface