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

IFeatureWorkspace.OpenRelationshipClass Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureWorkspace Interface > IFeatureWorkspace.OpenRelationshipClass Method
ArcGIS Developer Help

IFeatureWorkspace.OpenRelationshipClass Method

Opens an existing relationship class.

[Visual Basic .NET]
Public Function OpenRelationshipClass ( _
    ByVal Name As String _
) As IRelationshipClass
public IRelationshipClass OpenRelationshipClass (
    string Name
HRESULT OpenRelationshipClass(
  BSTR Name
Name [in]

Name is a parameter of type BSTR

Product Availability

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


The OpenRelationshipClass method can be used to open any existing relationship class in the workspace given its 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 relationship class.

See Also

IFeatureWorkspace Interface | IDatabaseConnectionInfo Interface