17 lines
363 B
PowerShell
17 lines
363 B
PowerShell
function Format-ConfigurationDataMergeKey {
|
|
[CmdletBinding()]
|
|
Param(
|
|
[AllowNull()]
|
|
$Item,
|
|
[Parameter(Mandatory=$true)]
|
|
[String[]]
|
|
$KeyNames
|
|
)
|
|
|
|
$Pairs = foreach($KeyName in $KeyNames){
|
|
"$KeyName=$(Get-ConfigurationDataItemValue -Item $Item -KeyName $KeyName)"
|
|
}
|
|
|
|
return ($Pairs -join ", ")
|
|
}
|