In my configuration I have a "Load Map" function that loads all of the Feature Services on the Map and Renders them for the user. With the new Undo/Redo functionality for the Feature Service I am working on getting my users used to it. However, when i load a map, add the Layers, and Render the Layers, the undo button becomes available to the user, even if I save edits and save project in the code. I don't want the user to be able to undo my rendering and layer loading? I want them to start off with no Redo or Undo available. The OperationManager doesn'ts seem to have any entries in it?

<SPAN class="comment token">//I don't know how to even find the categories available, but I want to remove all of them anyways and start with blank undo/redo stack</SPAN>
<SPAN class="comment token">//Here is my initial attempt (Category??)</SPAN>
OperationManager _operationManager <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">OperationManager</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//Nothing</SPAN>
List<SPAN class="operator token"><</SPAN>Operation<SPAN class="operator token">></SPAN> ops <SPAN class="operator token">=</SPAN> _operationManager<SPAN class="punctuation token">.</SPAN><SPAN class="token function">FindUndoOperations</SPAN><SPAN class="punctuation token">(</SPAN>o <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> o<SPAN class="punctuation token">.</SPAN>Category <SPAN class="operator token">==</SPAN> <SPAN class="string token">"Update Map Properties"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//Nother with != either</SPAN>
<SPAN class="comment token">//So it must be empty?</SPAN>
ops <SPAN class="operator token">=</SPAN> _operationManager<SPAN class="punctuation token">.</SPAN><SPAN class="token function">FindUndoOperations</SPAN><SPAN class="punctuation token">(</SPAN>o <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> o<SPAN class="punctuation token">.</SPAN>Category <SPAN class="operator token">!=</SPAN> <SPAN class="string token">"Update Map Properties"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//This will fail/error as ops is empty</SPAN>
_operationManager<SPAN class="punctuation token">.</SPAN><SPAN class="token function">RemoveUndoOperation</SPAN><SPAN class="punctuation token">(</SPAN>ops<SPAN class="punctuation token">.</SPAN><SPAN class="token function">First</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>