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


IObjectClassInfo2.CanBypassEditSession Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IObjectClassInfo2.CanBypassEditSession Method

Indicates if updates to objects can be safely made outside of an edit session.

[Visual Basic .NET]
Public Function CanBypassEditSession ( _
) As Boolean
[C#]
public bool CanBypassEditSession (
);
[C++]
HRESULT CanBypassEditSession(
  VARIANT_BOOL* CanBypassEditSession
);
[C++]

Parameters CanBypassEditSession [out, retval] CanBypassEditSession is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

CanBypassEditSession is a convenience method that returns True if the instances of this object class may be created or updated outside of a Geodatabase edit session (an edit session is started by using the StartEditing method on the IWorkspaceEdit or the StartMultiuserEditing method on the IMultiuserWorkspaceEdit interface).

If True , then applications may update the data in this object class using any of the data updating interfaces and methods described here without starting an edit session. In this case applications are responsible for starting host database transactions as appropriate and for discarding cached object states across transaction boundaries when running on an ArcSDE database.

If False, then applications should always make modifications to the data in this object class within an edit session for correct multi-user behavior and for correct management of database state internally cached by the Geodatabase for the objects in this object class.

This method returns False for network feature classes. By default, this method returns True for non-network custom object classes. The developer of a non-network custom object class can change this behavior by implementing this interface on the class extension associated with the class and returning true for the method.

See Also

IObjectClassInfo2 Interface