This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerRelationship Interface > IMapServerRelationship.Name Property (ArcObjects .NET 10.5 SDK) |
The name of the relationship.
[Visual Basic .NET] Public ReadOnly Property Name As String
[C#] public string Name {get;}
[C++]
HRESULT get_Name(
BSTR* Name
);
[C++]
Parameters Name [out, retval] Name is a parameter of type BSTR
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, Layer A is related to Layer B, Name will be appended with ":Layer B". The full Name in this example would be "Is owned by: Layer B". If the layer is related to a table, Name does not contain the table name. Using the example above, Name would be "Is owned by". Name from IMapServerRow refers to the string value of the Primary Display Field of the related table or layer.