Creating Module
This commit is contained in:
16
Private/Format-ConfigurationDataMergeKey.ps1
Normal file
16
Private/Format-ConfigurationDataMergeKey.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
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 ", ")
|
||||
}
|
||||
Reference in New Issue
Block a user