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


IRelateDescription.RelatedTableDefinitionExpression Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IR > IRelateDescription Interface > IRelateDescription.RelatedTableDefinitionExpression Property
ArcGIS Developer Help

IRelateDescription.RelatedTableDefinitionExpression Property

Definition expression of the related table for which related records are being requested.

[Visual Basic .NET]
Public Property RelatedTableDefinitionExpression As String
[C#]
public string RelatedTableDefinitionExpression {get; set;}
[C++]
HRESULT get_RelatedTableDefinitionExpression(
  System.String* Expression
);
[C++]
HRESULT put_RelatedTableDefinitionExpression(
  BSTR Expression
);
[C++]
Parameters
Expression [out, retval]

Expression is a parameter of type BSTR* Expression [in]
Expression is a parameter of type BSTR

Product Availability

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

Remarks

In case your related StandaloneTable/layer has definition expression and you want that to be honored, or you want to restrict your search within a subset of the related StandaloneTable/layer, you need to explicitly set that to this property. You may get the default definition expression set to that layer/StandaloneTable in the source document from IMapTableDescription::DefinitionExpression.

For example, LayerA is related to TableB. Records in that table in the source map document restricted not to include information beyond 1990 [i.e. "Year" <= 1990]. If RelatedTableDefinitionExpression is not set, the related results may contain information beyond 1990.

When this property is empty, the search will be performed on all the records/features on the StandaloneTable/layer.

 

See Also

IRelateDescription Interface