protected override void Dispose(bool disposing) { if (Pattern != null) { Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
internal static DropTargetPattern Wrap( AutomationElement element, IUIAutomationDropTargetPattern dropTargetPattern) { return(new DropTargetPattern(element: element, dropTargetPattern: dropTargetPattern)); }
public DropTargetPattern(A11yElement e, IUIAutomationDropTargetPattern p) : base(e, PatternType.UIA_DropTargetPatternId) { Pattern = p; PopulateProperties(); }
private DropTargetPattern(AutomationElement el, IUIAutomationDropTargetPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }