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


ITopologyWorkspace.OpenTopology Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITopologyWorkspace Interface > ITopologyWorkspace.OpenTopology Method
ArcGIS Developer Help

ITopologyWorkspace.OpenTopology Method

Opens and returns the topology with the specified name.

[Visual Basic .NET]
Public Function OpenTopology ( _
    ByVal Name As String _
) As ITopology
[C#]
public ITopology OpenTopology (
    string Name
);
[C++]
HRESULT OpenTopology(
  BSTR Name
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR

Product Availability

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

Remarks

The OpenTopology method can be used to open any existing topology in the workspace given its fully qualified name. Note that every topology in a geodatabase has a unique fully qualified name.  Use the IDatabaseConnectionInfo interface to determine the User and Database (if applicable).  ISQLSyntax::QualifyTableName can be used to determine the fully qualified name for a topology.  Use the IWorkspace2::NameExists method to determine if a topology with the appropriate name exists in the geodatabase.

Some examples of how to use the name parameter of OpenTopology are shown below:
For topologies in a Personal or File Geodatabase:
MyTopology
For topologies in an Oracle ArcSDE Geodatabase (the owner prefix is unnecessary if you are connected as the owner of the topology):
gdb.MyTopology

See Also

ITopologyWorkspace Interface