Skip to content

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.

EXAMPLES

EXAMPLE 1

Add-PodeFlashMessage -Name 'error' -Message 'There was an error'

PARAMETERS

-Message

The message to append.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

The name of the flash message to be appended.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES