Added parented constructor for ShellItemArray

pull/83/head
David Hall 2019-10-23 13:14:46 -06:00
parent 0223ac1721
commit 3a09d5230a
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,16 @@ namespace Vanara.Windows.Shell
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ShellItemArray" /> class.
/// </summary>
/// <param name="parent">The Shell data source object that is the parent of the child items specified in <paramref name="pidls"/>.</param>
/// <param name="pidls">The list of child item IDs for which the array is being created. This value can be <see langword="null"/>.</param>
public ShellItemArray(IShellFolder parent, IntPtr[] pidls)
{
SHCreateShellItemArray(PIDL.Null, parent, (uint)(pidls?.Length ?? 0), pidls, out array).ThrowIfFailed();
}
/// <summary>Initializes a new instance of the <see cref="ShellItemArray"/> class.</summary>
/// <param name="pidls">The IDList items to add to this array.</param>
private ShellItemArray(IntPtr[] pidls)