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


IWorkspaceEditControl Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IWorkspaceEditControl Interface

Provides access to method that controls if insert and update cursors on simple classes can bypass store events

Product Availability

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

Members

Description
Method SetStoreEventsRequired Indicates that insert and update cursors on simple classes cannot bypass store events

CoClasses that implement IWorkspaceEditControl

CoClasses and Classes Description
Workspace Workspace Object.

Remarks

By default on simple classes, insert cursors handed out by the geodatabase will internally bypass the CreateRow and Store mechanisms when creating and updating objects.  Tools that use insert cursors include Planarize, Create Features and the Object Loader.  When CreateRow and Store are bypassed, subsequent events are not fired for clients listening to IEditEvents and IObjectClassEvents.

This can be overridden on the class level by implemeting IObjectClassInfo2 on its class extension and setting the CanBypassStore property to False. False indicates that insert cursors will not bypass Store and subsequent custom behavior implemented by the row object for this class.

IWorkspaceEditControl allows you to override this for all classes in an edit session by logically making CanBypassStore equal to False for all classes in that edit session. Doing this will ensure that when features are inserted, updated or deleted by editor tools that use insert and update cursors they do not bypass Store and subsequent edit events.

For a simple class in which SetStoreEventsRequired has not been called, edits will not broadcast IObjectClassEvents which in turn will not be rebroadcast as IEditEvents (for which a custom editor extension may be listening). Calling SetStoreEventsRequired will ensure these events are always broadcast.

See Also

IObjectClassInfo Interface | IEditEvents Interface

.NET Related Topics

Responding to feature or row edits