public object GetCurrentPattern (AutomationPattern pattern) { throw new InvalidOperationException (); }