Creates a new relationship class in this container.
[Visual Basic .NET] Public Function CreateRelationshipClass ( _ ByVal relClassName As String, _ ByVal OriginClass As IObjectClass, _ ByVal DestinationClass As IObjectClass, _ ByVal ForwardLabel As String, _ ByVal BackwardLabel As String, _ ByVal Cardinality As esriRelCardinality, _ ByVal Notification As esriRelNotification, _ ByVal IsComposite As Boolean, _ ByVal IsAttributed As Boolean, _ ByVal relAttrFields As IFields, _ ByVal OriginPrimaryKey As String, _ ByVal destPrimaryKey As String, _ ByVal OriginForeignKey As String, _ ByVal destForeignKey As String _ ) As IRelationshipClass
[C#] public IRelationshipClass CreateRelationshipClass ( string relClassName, IObjectClass OriginClass, IObjectClass DestinationClass, string ForwardLabel, string BackwardLabel, esriRelCardinality Cardinality, esriRelNotification Notification, bool IsComposite, bool IsAttributed, IFields relAttrFields, string OriginPrimaryKey, string destPrimaryKey, string OriginForeignKey, string destForeignKey );
[C++]
HRESULT CreateRelationshipClass(
BSTR relClassName,
IObjectClass* OriginClass,
IObjectClass* DestinationClass,
BSTR ForwardLabel,
BSTR BackwardLabel,
esriRelCardinality Cardinality,
esriRelNotification Notification,
VARIANT_BOOL IsComposite,
VARIANT_BOOL IsAttributed,
IFields* relAttrFields,
BSTR OriginPrimaryKey,
BSTR destPrimaryKey,
BSTR OriginForeignKey,
BSTR destForeignKey,
IRelationshipClass** RelationshipClass
);
[C++]Parameters
relClassName [in] relClassName is a parameter of type BSTR OriginClass [in]OriginClass is a parameter of type IObjectClass
DestinationClass [in]DestinationClass is a parameter of type IObjectClass
ForwardLabel [in] ForwardLabel is a parameter of type BSTR BackwardLabel [in] BackwardLabel is a parameter of type BSTR Cardinality [in]Cardinality is a parameter of type esriRelCardinality
Notification [in]Notification is a parameter of type esriRelNotification
IsComposite [in] IsComposite is a parameter of type VARIANT_BOOL IsAttributed [in] IsAttributed is a parameter of type VARIANT_BOOL relAttrFields [in]relAttrFields is a parameter of type IFields
OriginPrimaryKey [in] OriginPrimaryKey is a parameter of type BSTR destPrimaryKey [in] destPrimaryKey is a parameter of type BSTR OriginForeignKey [in] OriginForeignKey is a parameter of type BSTR destForeignKey [in] destForeignKey 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.