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


ISelectionSet2.Update Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

ISelectionSet2.Update Method

Returns a cursor that can be used to update the objects specified by a query over this selection set.

[Visual Basic .NET]
Public Sub Update ( _
    ByVal QueryFilter As IQueryFilter, _
    ByVal Recycling As Boolean, _
    ByRef Cursor As ICursor _
)
[C#]
public void Update (
    IQueryFilter QueryFilter,
    bool Recycling,
    ref ICursor Cursor
);
[C++]
HRESULT Update(
  IQueryFilter* QueryFilter,
  VARIANT_BOOL Recycling,
  ICursor** Cursor
);
[C++]

Parameters QueryFilter [in]
QueryFilter is a parameter of type IQueryFilter* Recycling [in]
Recycling is a parameter of type bool Cursor [out]
Cursor is a parameter of type ICursor**

Product Availability

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

Description

The Update method returns an 'update' cursor that can be used to update or delete rows. It offers somewhat faster performance than multiple calls to Store or Delete on row objects fetched using a non-recycling search cursor for tables storing simple rows and simple features. There is no difference in performance for custom features.

Remarks

All edits to features that participate in a Topology or Geometric Network must be bracketed within an edit operation.

See Also

ISelectionSet2 Interface