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


IMapTopology.Name Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > EditorExt > ESRI.ArcGIS.EditorExt > Interfaces > IM > IMapTopology Interface > IMapTopology.Name Property
ArcGIS Developer Help

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