ArcObjects Library Reference (GeoDatabaseDistributed)  

ITableDataChangesInfo.SetFilter Method

The filter for the inserts table.

[Visual Basic .NET]
Public Sub SetFilter ( _
    ByVal changeType As esriDataChangeType, _
    ByVal Filter As IQueryFilter _
)
[C#]
public void SetFilter (
    esriDataChangeType changeType,
    IQueryFilter Filter
);
[C++]
HRESULT SetFilter(
  esriDataChangeType changeType,
  IQueryFilter* Filter
);
[C++]

Parameters

changeType [in]

  changeType is a parameter of type esriDataChangeType

Filter [in]

  Filter is a parameter of type IQueryFilter

Product Availability

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

Remarks

The SetFilter method allows you to specify a query filter to be applied to the edits specified for the TableDataChangesInfo object.  The edits that will be filtered are those specified in the Init method and also any deleted records specified with the SetDeletedIDs method.

The changeType parameter takes a member of the esriDataChangeType enumeration to determine whether the filter will be applied to the updates, inserts, or deletes.   The Filter takes a reference to a QueryFilter which defines the filter to be applied to the change type specified by the changeType parameter.

[C#]
 public void SetFilter(ITableDataChangesInfo tableDCInfo , esriDataChangeType dataChangeType, IQueryFilter qFilter)
 {
     try
     {
         // Set the Filter
         tableDCInfo.SetFilter(dataChangeType, qFilter);
     }
     catch (COMException comExc)
     {
         // Re-throw the exception.
         throw comExc;
     }
 }

See Also

ITableDataChangesInfo Interface