< Back

New-BTContextMenuItem

Sun Jan 12, 2020 7:32 pm

NAME New-BTContextMenuItem



SYNOPSIS

Creates a Context Menu Item object.





SYNTAX

New-BTContextMenuItem [-Content] <String> [-Arguments] <String> [[-ActivationType] {Foreground | Background |

Protocol}] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The New-BTContextMenuItem function creates a Context Menu Item object.





PARAMETERS

-Content <String>

The text to display on the menu item.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Arguments <String>

App-defined string of arguments that the app can later retrieve once it is activated when the user clicks the

menu item.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ActivationType

Controls what type of activation this menu item will use when clicked. Defaults to Foreground.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

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

None





OUTPUTS

ToastContextMenuItem





NOTES





Credit for most of the help text for this function go to the authors of the UWPCommunityToolkit library that

this module relies upon.



Please see the originating repo here: https://github.com/Microsoft/UWPCommunityToolkit



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



PS C:\\>New-BTContextMenuItem -Content 'Google' -Arguments 'https://google.com' -ActivationType Protocol



This command creates a new Context Menu Item object with the specified properties.











RELATED LINKS

https://github.com/Windos/BurntToast/bl ... enuItem.md