Write PodeCsvResponse - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Responses schema: 2.0.0
Writes CSV data to the Response.
Write-PodeCsvResponse [-Value] <Object> [-StatusCode <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Write-PodeCsvResponse -Path <String> [-StatusCode <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Writes CSV data to the Response, setting the content type accordingly.
Write-PodeCsvResponse -Value "Name`nRick"
Write-PodeCsvResponse -Value @{ Name = 'Rick' }
Write-PodeCsvResponse -Path 'E:/Files/Names.csv'
The path to a CSV file.
Type: String
Parameter Sets: File
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The status code to set against the response.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 200
Accept pipeline input: False
Accept wildcard characters: False
A String, PSObject, or HashTable value.
Type: Object
Parameter Sets: Value
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
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.