This document is archived and information here might be outdated.  Recommended version.


IMapServerRelationship Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerRelationship Interface
ArcGIS Developer Help

IMapServerRelationship Interface

Provides access to the Map Server Relationship Interface.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

 Use IMapServerRelationship to access the name and rows of a related table. 

Members

Name Description
Read-only property Name The name of the relationship.
Read-only property Rows The rows.

Classes that implement IMapServerRelationship

Classes Description
MapServerRelationship The Map Server Relationship coclass contains information about a relationship if one exists.

Remarks

A layer can be related to a table or layer. Name refers to the name of relationship set in the map document or in the GeoDatabase. For example, a relationship may be named "Is owned by". If the layer is related to another layer/table e.g. Layer A is related to Layer B, or a Table C, IMapServerRelationship::Name is same as the destination layer/table i.e. �Layer B� or �Table C�.

The property RelatedRows on the IMapServerIdentifyResult interface returns a collection of MapServerRelationship objects. The IMapServerRelationship interface contains the name of the relate and the property Rows. This property returns a collection of MapServerRow objects. MapServerRow objects honor all field aliases, field visibility and field formatting set in the map document or the GeoDatabase. Using the IMapServerRow interface you can access properties (Name, PropertySet and RelatedRows) of the row of a related table.