I also hope that an interface will be provided soon. I did not find anything in ArcGIS 10.3 though. Meanwhile i created a workaround by saving, editing and reloading the editor. public static void EnsureNonAutoCommit(IEditor editor) { string tempName = Path.Combine(Path.GetTempPath(), "mistraEditor.tmp"); { IBlobStream blobStream = new MemoryBlobStreamClass(); IStream stream = blobStream; ((IPersistStream)editor).Save(stream, 1); blobStream.SaveToFile(tempName); } using (BinaryWriter w = new BinaryWriter(new System.IO.FileStream(tempName, FileMode.Open))) { w.Seek((int)w.BaseStream.Length - 2, SeekOrigin.Begin); // for AutoCommit, the last two bytes are 255 w.Write(new byte[] { 0, 0 }); } { FileStreamClass cStr = new FileStreamClass(); IFile fi = cStr; fi.Open(tempName, esriFilePermission.esriReadOnly); IStream str = cStr; ((IPersistStream)editor).Load(str); } }
... View more