For the complete documentation index, see llms.txt. This page is also available as Markdown.

Show-UDToast

Synopsis

Displays a toast message to the user.

Syntax

Show-UDToast [-Message] <String> [-MessageColor <DashboardColor>] [-MessageSize <String>] [-Duration <Int32>] [-Title <String>] [-TitleColor <DashboardColor>] [-TitleSize <String>] [-Id <String>] [-BackgroundColor <DashboardColor>] [-Theme <String>] [-Icon <Object>] [-IconColor <DashboardColor>] [-Position <String>] [-HideCloseButton] [-CloseOnClick] [-CloseOnEscape] [-ReplaceToast] [-RightToLeft] [-Balloon] [-Overlay] [-OverlayClose] [-OverlayColor <DashboardColor>] [-TransitionIn <String>] [-TransitionOut <String>] [-Broadcast] [-Persistent] [<CommonParameters>]

Description

Displays a toast message to the user.

Parameters

-Message

The message to display.

Required?                    true
Position?                    1
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-MessageColor

The text color of the message.

-MessageSize

The size of the message.

-Duration

The duration in milleseconds before the message disappears.

-Title

The title to display.

-TitleColor

The text color of the title.

-TitleSize

The size of the title.

-Id

The ID of the toast. For use with Hide-UDToast.

-BackgroundColor

The background color of the toast.

-Theme

Light or dark theme.

-Icon

The icon to display in the toast.

-IconColor

The color of the icon.

-Position

Where to display the toast.

-HideCloseButton

Hides the close button.

-CloseOnClick

Closes the toast when clicked.

-CloseOnEscape

Closes the toast when esc is pressed.

-ReplaceToast

Replaces an existing toast if one is already showing.

-RightToLeft

Right to left text.

-Balloon

Creates a balloon toast.

-Overlay

Displays an overlay behind the toast.

-OverlayClose

Allow the user to close the overlay.

-OverlayColor

The color of the overlay.

-TransitionIn

The transition in effect.

-TransitionOut

The transition out effect.

-Broadcast

Broadcasts the toast to all connected users.

-Persistent

Prevents the toast from closing due to the duration.

Common parameters

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

Outputs

Examples

Example 1

Basic Toast Shows a toast message.

Example 2: Duration

Shows a toast message with a longer duration.

Example 3: Title

Shows a toast message with a title.

Example 4: Title Color

Shows a toast message with a title and a red title color.

Example 5: Title Size

Shows a toast message with a title, a red title color, and a large title size.

Example 6: Message Color

Shows a toast message with a blue message color.

Example 7: Message Size

Shows a toast message with a large message size.

Example 8: Icon

Shows a toast message with a check icon.

Example 9: Persistent

Shows a toast message that will not close. The Hide-UDToast command can be used to close the toast.

Example 10: Position

Shows a toast message at the bottom right of the screen.

Example 11: Hide Close Button

Shows a toast message without a close button.

Example 12: Close On Click

Shows a toast message that will close when clicked.

Example 13: Close On Escape

Shows a toast message that will close when the escape key is pressed.

Example 14: Replace Toast

Shows a toast message that will replace an existing toast. -Id is required.

Example 15: Right To Left

Shows a toast message with right to left text.

Example 16: Balloon

Shows a toast message as a balloon.

Example 17: Overlay

Shows a toast message as an overlay.

Example 18: Theme

Shows a toast message with a dark theme.

Example 19: Background Color

Shows a toast message with a red background color.

Example 20: Transition

Shows a toast message with a bounce in left transition and a bounce out right transition.

Last updated

Was this helpful?