Return Value
The Table which corresponds to the
origin table
of the join.origin table
used to create the join. This method must be called on the MCT. Use QueuedTask.Run.origin table
of the join.Exception | Description |
---|---|
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
// GetDefinitionFromLayer - This code works even if the layer has a join to another table private TableDefinition GetDefinitionFromLayer(FeatureLayer featureLayer) { // Get feature class from the layer FeatureClass featureClass = featureLayer.GetFeatureClass(); // Determine if feature class is a join if (featureClass.IsJoinedTable()) { // Get join from feature class Join join = featureClass.GetJoin(); // Get origin table from join Table originTable = join.GetOriginTable(); // Return feature class definition from the join's origin table return originTable.GetDefinition(); } else { return featureClass.GetDefinition(); } }
Target Platforms: Windows 11, Windows 10, Windows 8.1