title: What is RevertToSelf()? - C#.net
body: <p>I don't understand what <code>RevertToSelf()</code> does in a .net application. Checking MSDN definition it reads the definition as</p>
  
  <pre><code>The RevertToSelf function terminates the impersonation of a client application.
  </code></pre>
  
  <p>So does the current user context changes to a sysadmin context by stopping client's context? By calling RevertToSelf() will my code run on sys admin mode?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Okay so what happens if I call RevertToSelf() in an ASP.NET application? Let us consider I dont start any impersonation. So if I call RevertToSelf() will it revert to the application pool identity? </p>