public void SetWindowVisualState(WindowVisualState state)
{
try
{
this._pattern.SetWindowVisualState((UIAutomationClient.WindowVisualState)state);
}
catch (System.Runtime.InteropServices.COMException e)
{
Exception newEx; if (Utility.ConvertException(e, out newEx)) { throw newEx; } else { throw; }
}
}