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


IFeatureWorkspace.OpenRelationshipClass Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IFeatureWorkspace.OpenRelationshipClass Method

Opens an existing relationship class.

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

Parameters Name [in] Name is a parameter of type BSTR RelationshipClass [out, retval]
RelationshipClass is a parameter of type IRelationshipClass

Product Availability

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

Remarks

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