ArcObjects Library Reference (GeoDatabase)  

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,
  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.

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