The method gets the relationships between an item and other items within the system. 



Code Sample


# Get the relationships.

$relationships = $xia.GET_Relationships(1234);


# Display relationship information.

foreach ($relationship in $relationships.Relationship)

{

    Write-Host "$($relationship.TargetName) [$($relationship.TargetItemID)]";

    Write-Host $relationship.DirectionString;

    Write-Host $relationship.RelationshipTypeString;

    Write-Host;

}