ArcObjects Library Reference (GeoDatabase)  

ITopologyContainer.TopologyByName Property

The topology with the specified name.

[Visual Basic .NET]
Public Function get_TopologyByName ( _
    ByVal Name As String _
) As ITopology
[C#]
public ITopology get_TopologyByName (
    string Name
);
[C++]
HRESULT get_TopologyByName(
  BSTR Name,
  ITopology** Topology
);
[C++]

Parameters

Name [in]   Name is a parameter of type BSTR Topology [out, retval]

  Topology is a parameter of type ITopology

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Errors Returned

FDO_E_TOPOLOGY_NOT_FOUND: No Topology with the specified name exists in the Feature Dataset.  Use the IWorkspace2::NameExists property to determine if a Topology with the specified name exists.

Remarks

The TopologyByName property will return a reference to the topology with the specified name. For ArcSDE Geodatabases, both the fully qualified name and unqualified name can be used to return topologies.  If different users own topologies with the same unqualified names in the ArcSDE Geodatabase, using the unqualified name will return the topology owned by the current user.

See Also

ITopologyContainer Interface

.NET Related Topics

Checking for topology error features in a geodatabase topology | Geodatabase | Listening to the OnValidate event for a geodatabase topology |