This document is archived and information here might be outdated.  Recommended version.


IMapTopology.Name Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (EditorExt)  

IMapTopology.Name Property

The name of this map topology.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

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.

[C#]
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";  
  System.Diagnostics.Debug.Write(mapTopology.Name);
}
[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"
    System.Diagnostics.Debug.Print(mapTopology.Name)
  End Sub

See Also

IMapTopology Interface