From what I learned from the reflector, RunWithElevatedPriveleges simply returns the current thread identity to the base (without impersonation) identifier. This makes sense in the case of code running inside the WSS application pool, since the basic service account is the superuser. Does this have an effect when working in an external (console or service) application when there is no impersonation? I suppose not, but I would like to know for sure. I saw different opinions about this from googling.
source
share