In my script, I'm querying a SQL Table and returning some records. The returned data set has three columns and a few rows.
I can fill a hashtable if I'm only using two columns. When I try to use three columns, the script breaks.
Cannot find an overload for "Add" and the argument count: "3"
this works:
$config=@{}
foreach($item in $nachos)
{
$config.Add($item.meat, $item.topping)
}
Does not work:
$config=@{}
foreach($item in $nachos)
{
$config.Add($item.meat, $item.topping, $item.cheese)
}
I can fill a hashtable if I'm only using two columns. When I try to use three columns, the script breaks.
Cannot find an overload for "Add" and the argument count: "3"
this works:
$config=@{}
foreach($item in $nachos)
{
$config.Add($item.meat, $item.topping)
}
Does not work:
$config=@{}
foreach($item in $nachos)
{
$config.Add($item.meat, $item.topping, $item.cheese)
}