Fetches relationships of specified type from the server and sets them on the item. Specified select list will be set on the request AML.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public Item fetchRelationships(
	string relationshipTypeName,
	string selectList
)
Visual Basic (Declaration)
Public Function fetchRelationships ( _
	relationshipTypeName As String, _
	selectList As String _
) As Item
J#
public Item fetchRelationships(
	String relationshipTypeName,
	String selectList
)
JScript
public function fetchRelationships(
	relationshipTypeName : String, 
	selectList : String
) : Item

Parameters

relationshipTypeName
Type: System..::.String
Name of the relationship type.
selectList
Type: System..::.String
Select list that is set on attribute 'select' of the request (see "Programmer's Guide" for more info on format of select list).

Return Value

If server request failed the method returns an "error" item; otherwise it returns this.

Remarks

The method performs a server request.

Exceptions

ExceptionCondition
System..::.Exception
  • The instance doesn't represent a single item.
  • Item's ID is not set.
System..::.ArgumentExceptionRelationship type either null or empty.

See Also