Fetches relationships of specified type from the server and sets them on the item. Specified select list and order are 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,
	string orderBy
)
Visual Basic (Declaration)
Public Function fetchRelationships ( _
	relationshipTypeName As String, _
	selectList As String, _
	orderBy As String _
) As Item
J#
public Item fetchRelationships(
	String relationshipTypeName,
	String selectList,
	String orderBy
)
JScript
public function fetchRelationships(
	relationshipTypeName : String, 
	selectList : String, 
	orderBy : 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).
orderBy
Type: System..::.String
The value is set on attribute 'order_by' of the request (see "Programmer's Guide" for more info on format of 'order_by').

Return Value

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

Remarks

The method performs a server request. If relationships of the specified type already exist on this.node they are removed and replaced by the relationships fetched from the server.

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