Chili.Opf3 Send comments on this topic.
GetRelatedObject Method
See Also 
Chili.Opf3 Namespace > IRelationsPopulateHelper Interface : GetRelatedObject Method




relationName
The name of the relation.
info
An instance of the RelationInformation object that holds the most important information for the relation.
Returns the related object for the relation.

Syntax

Visual Basic (Declaration) 
Overridable Function GetRelatedObject( _
   ByVal relationName As String, _
   ByVal info As RelationInformation _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As IRelationsPopulateHelper
Dim relationName As String
Dim info As RelationInformation
Dim value As Object
 
value = instance.GetRelatedObject(relationName, info)
C# 
virtual object GetRelatedObject( 
   string relationName,
   RelationInformation info
)
Managed Extensions for C++ 
virtual Object* GetRelatedObject( 
   string* relationName,
   RelationInformation* info
) 
C++/CLI 
virtual Object^ GetRelatedObject( 
   String^ relationName,
   RelationInformation^ info
) 

Parameters

relationName
The name of the relation.
info
An instance of the RelationInformation object that holds the most important information for the relation.

Return Value

The related object(s) or null if nothing should be returned.

Remarks

This method loads the related object(s) and returns it/them. If the relation would return an ObjectSet (see ObjectSetHolder) this method needs to return an ObjectSet; the same applies to List<T> (see ObjectListHolder) and a single persistent (see ObjectHolder). Otherwise a runtime error is going to be thrown.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also