ArcGIS Pro 2.6 API Reference Guide
RelateTo Method

ArcGIS.Core.Data Namespace > Table Class : RelateTo Method
The Table or FeatureClass which acts as the destination of the resulting relationship class.
The VirtualRelationshipClassDescription which describes the properties with which the relationship class is created.
Creates a virtual relationship class with the current table as the origin table/feature class and the destinationTable as the destination table/feature class. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

destinationTable
The Table or FeatureClass which acts as the destination of the resulting relationship class.
description
The VirtualRelationshipClassDescription which describes the properties with which the relationship class is created.

Return Value

The virtual RelationshipClass created from the destinationTable and description.
Exceptions
ExceptionDescription
destinationTable or description is null.
A geodatabase-related exception has occurred.
Remarks
The resulting RelationshipClass will not be persisted in the data store. Typically, it is used as an input to JoinDescription in order to create a Join object.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Table Class
Table Members