Show-BTNotification

SYNOPSIS

Shows a new toast notification.

SYNTAX

Show-BTNotification [-ContentBuilder] <ToastContentBuilder[]> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Show-BTNotification function shows a new toast notification with its configured content.

EXAMPLES

EXAMPLE 1

Show-BTNotification -ContentBuilder $ToastContentBuilder

This command displays a toast notification with the content of the ToastContentBuilder object.

EXAMPLE 2

$ToastContentBuilder | Show-BTNotification

This command displays a toast notification with the content of the ToastContentBuilder object supplied via the pipeline.

EXAMPLE 3

This example demonstrates the full life cycle of a ToastContentBuilder object from creation to display.

PARAMETERS

-ContentBuilder

{{ Fill ContentBuilder Description }}

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

-Confirm

Prompts you for confirmation before running the cmdlet.

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

Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder

You can pipe a toast content builder object to Show-BTNotification.

OUTPUTS

None

NOTES

Last updated

Was this helpful?