Show / Hide Table of Contents

Method RelateFeature

RelateFeature(ArcGISFeature)

Sets up a relationship between this feature and the provided feature.

Declaration
public void RelateFeature(ArcGISFeature feature)
Parameters
Type Name Description
ArcGISFeature feature

The feature to which this feature should be related.

Remarks

If this relationship is keyed on an Object ID or Global ID, and the origin feature in this call has been created locally, you must first call the ServiceGeodatabase.ApplyEditsAsync() method on the ServiceGeodatabase. Next, you must call Refresh() to get the new Object ID and Global ID that are generated by the service. Otherwise, the destination feature will refer to an outdated ID rather than the one defined for the relationship.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

RelateFeature(ArcGISFeature, RelationshipInfo)

Sets up a relationship between this feature and the provided feature based on the given relationshipInfo. See RelationshipInfo for more details.

Declaration
public void RelateFeature(ArcGISFeature feature, RelationshipInfo relationshipInfo)
Parameters
Type Name Description
ArcGISFeature feature

The feature to which this feature should be related.

RelationshipInfo relationshipInfo

The relationship info to use when relating the two features.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8
In This Article
Back to top Copyright © 2022 Esri.