| Visual Basic (Declaration) | |
|---|---|
Overridable Function GetRelatedObject( _ ByVal relationName As String, _ ByVal info As RelationInformation _ ) As Object | |
| Visual Basic (Usage) | |
|---|---|
| |
| 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.
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