SandboxedThreadState
Holds thread state which is captured and restored in order to sandbox user code.
            
                
Thread principal.
            This will be null on platforms that don't support  CurrentPrincipal.
            
Captures a snapshot of the tracked state of the current thread to be restored later.
            
Restores the tracked state of the current thread to the previously captured state.
            
Returns a copy with the specified culture.
            
Returns a copy with the specified principal.
            
Returns a copy with the specified UI culture.