$Variable
as the contents for the message.$item
will be null when clicking Show-UDToast
.-ArgumentList
parameter of components that provide event handlers. Instead of passing a script block to the event handler parameter, pass a new UDEndpoint to the parameter instead.-ArgumentList
parameter. Within the endpoint you can access this list of variables via the $ArgumentList
variable.