Show-BTNotification
Shows a new toast notification.
Show-BTNotification [-ContentBuilder] <ToastContentBuilder[]> [-WhatIf] [-Confirm] [<CommonParameters>]
The Show-BTNotification function shows a new toast notification with its configured content.
Show-BTNotification -ContentBuilder $ToastContentBuilder
This command displays a toast notification with the content of the ToastContentBuilder object.
$ToastContentBuilder | Show-BTNotification
This command displays a toast notification with the content of the ToastContentBuilder object supplied via the pipeline.
$Builder = New-BTContentBuilder
$Builder | Add-BTText -Text 'First Line of Text', 'Second Line of Text'
Show-BTNotification -ContentBuilder $Builder
This example demonstrates the full life cycle of a ToastContentBuilder object from creation to display.
{{ Fill ContentBuilder Description }}
Type: ToastContentBuilder[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
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.
You can pipe a toast content builder object to Show-BTNotification.
Last modified 1yr ago