Public/Get-RdlcReportParameter.ps1
function Get-RdlcReportParameter { param ( [Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName, Position = 0)] [Alias('FullName')] [string[]]$Path ) process { $Path.ForEach{ $CurrentPath = Resolve-Path -Path $_ [xml](Get-Content -Path $CurrentPath) | Select-Object -ExpandProperty Report | Select-Object -ExpandProperty ReportParameters -ErrorAction SilentlyContinue | Select-Object -ExpandProperty ReportParameter | ForEach-Object { [PSCustomObject]@{ PSTypeName = 'UncommonSense.Rdlc.Utils.ReportParameter' Path = $CurrentPath Name = $_.Name DataType = $_.DataType DefaultValue = $_.DefaultValue.Values.Value Prompt = $_.Prompt } } } } } |