/// <summary> /// Tests whether the <see cref="ShellItem"/> is the immediate parent /// of another item. /// </summary> /// /// <param name="item"> /// The potential child item. /// </param> public bool IsImmediateParentOf(ShellItem item) { return(IsFolder && Shell32.ILIsParent(Pidl, item.Pidl, true)); }
/// <summary> /// Tests whether the <see cref="ShellItem"/> is the parent of /// another item. /// </summary> /// /// <param name="item"> /// The potential child item. /// </param> public bool IsParentOf(ShellItem item) { return(IsFolder && Shell32.ILIsParent(Pidl, item.Pidl, false)); }
/// <summary> /// Tests whether the <see cref="ShellItem"/> is the parent of /// another item. /// </summary> /// /// <param name="item"> /// The potential child item. /// </param> public bool IsParentOf(ShellItem item) => IsFolder && Shell32.ILIsParent(Pidl, item.Pidl, false);