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