external help file: SitecoreInstallFramework-help.xml
online version:
schema: 2.0.0
---
Joins a list of values as a single path
Invoke-JoinPathConfigFunction [[-Values] <PSObject[]>] [<CommonParameters>]
Joins a list of values as a correctly formatted path.
If passed an array, the array is flattened.
When given an object, the ToString() method will be on the object.
Null and empty strings are ignored.
PS C:\> Invoke-JoinPathConfigFunction c: example path
Returns the path 'c:\example\path'
PS C:\> Invoke-JoinPathConfigFunction @('.\',$null,'abc')
Returns the path '.\abc'
PS C:\> $obj = [pscustomobject]@{ Value = 'test' }
PS C:\> $obj | Add-Member -Name ToString -MemberType ScriptMethod -Value { $this.Value } -Force
PS C:\> Invoke-JoinPathConfigFunction '.\',$obj,'abc'
Returns the path '.\test\abc'
The values to join when making a path.
Type: PSObject[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).