UIAutomation.CurrentData.ResetData C# (CSharp) Method

ResetData() public static method

public static ResetData ( ) : void
return void
        public static void ResetData()
        {
            CurrentWindow = null;
            Error.Clear();
            LastCmdlet = null;
            LastResult = null;
            
            // Events
            LastEventSource = null;
            LastEventType = string.Empty;
            LastEventArgs = null;
            LastEventInfoAdded = false;
            
            // 20130109
            try {
                // 20140130
                // TODO:
                classic.Automation.RemoveAllEventHandlers();
                Events.Clear();
            }
            catch {
                
            }
            
            // 20140109
            // WizardCollection.ResetData();
            // ExecutionPlan.DisposeHighlighers();
            
            // 20140108
            //
//            try {
//                AutomationFactory.Reset();
//            }
//            catch {}
            //
        }