< Back

Add-PodeFlashMessage

Sat Jan 18, 2020 7:12 pm

NAME Add-PodeFlashMessage



SYNOPSIS

Appends a message to the current flash messages stored in the session.





SYNTAX

Add-PodeFlashMessage [-Name] <String> [-Message] <String> [<CommonParameters>]





DESCRIPTION

Appends a message to the current flash messages stored in the session for the supplied name.

The messages per name are stored as an array.





PARAMETERS

-Name <String>

The name of the flash message to be appended.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Message <String>

The message to append.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-PodeFlashMessage -Name 'error' -Message 'There was an error'















RELATED LINKS