This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRepresentationClass Interface > IRepresentationClass.PrepareFilter Method (ArcObjects .NET 10.4 SDK) |
Adds the fields used by overrides to the query filter.
[Visual Basic .NET] Public Sub PrepareFilter ( _ ByVal filter As IQueryFilter _ )
[C#] public void PrepareFilter ( IQueryFilter filter );
[C++]
HRESULT PrepareFilter(
IQueryFilter* filter
);
[C++]
Parameters filter [in]
filter is a parameter of type IQueryFilter
Use PrepareFilter method to add fields to a query filter which will be used by overrides. This method takes a reference to a QueryFilter and sets the SubFields to RepresentationRuleID (RID) and Override (Override). The returned QueryFilter can be used to filter data based on the Representation information contained in these two fields. Use this method in conjunction with GetRepresentation method to query all representations. Add additional fields to the QueryFilter object using AddField method on IQueryFilter interface.
The following code snippet demonstrates the use of PrepareFilter and GetRepresentation methods. Reference to a RepresentationClass must be present to use this code: