示例#1
0
 public TreeWalker(Condition condition)
 {
     // This is an unusual situation - a direct constructor.
     // We have to go create the native tree walker, which might throw.
     Utility.ValidateArgumentNonNull(condition, "condition");
     try
     {
         this._obj = Automation.Factory.CreateTreeWalker(condition.NativeCondition);
     }
     catch (System.Runtime.InteropServices.COMException e)
     {
         Exception newEx; if (Utility.ConvertException(e, out newEx)) { throw newEx; } else { throw; }
     }
 }
示例#2
0
 public TreeWalker(Condition condition)
 {
     // This is an unusual situation - a direct constructor.
     // We have to go create the native tree walker, which might throw.
     Utility.ValidateArgumentNonNull(condition, "condition");
     try
     {
         this._obj = Automation.Factory.CreateTreeWalker(condition.NativeCondition);
     }
     catch (System.Runtime.InteropServices.COMException e)
     {
         Exception newEx; if (Utility.ConvertException(e, out newEx))
         {
             throw newEx;
         }
         else
         {
             throw;
         }
     }
 }
示例#3
0
 internal TreeWalker Wrap(UIAutomationClient.IUIAutomationTreeWalker obj)
 {
     return((obj == null) ? null : Wrap(obj));
 }
示例#4
0
 internal TreeWalker(UIAutomationClient.IUIAutomationTreeWalker obj)
 {
     Debug.Assert(obj != null);
     _obj = obj;
 }
示例#5
0
 internal TreeWalker(UIAutomationClient.IUIAutomationTreeWalker obj)
 {
     Debug.Assert(obj != null);
     _obj = obj;
 }