Functions/New-IAWidgetConfigurationVulnerabilitiesObject.ps1
Function New-IAWidgetConfigurationVulnerabilityObject{ Param( [String]$ChartTitle, [Bool]$ShowSumAsPercentage ) $IAWidgetConfigurationVulnerabilityObject = New-Object -TypeName PSObject $IAWidgetConfigurationVulnerabilityObject | Add-Member -MemberType NoteProperty -Name 'ChartTitle' -Value $null $IAWidgetConfigurationVulnerabilityObject | Add-Member -MemberType NoteProperty -Name 'ShowSumAsPercentage' -Value $null if($ChartTitle) { $IAWidgetConfigurationVulnerabilityObject.ChartTitle = $ChartTitle } if($ShowSumAsPercentage) { $IAWidgetConfigurationVulnerabilityObject.ShowSumAsPercentage = $ShowSumAsPercentage } return $IAWidgetConfigurationVulnerabilityObject } |