Fix parameter and item type declaration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2021-01-27 16:06:20 +01:00
parent e14f9469cb
commit 86809640b4

View File

@ -6,7 +6,7 @@ Param(
Function New-ToastNotification {
Param(
[Parameter]
[Parameter()]
[string]$Stream = 'OVF Properties',
[Parameter(Mandatory)]
[string]$Title,
@ -14,6 +14,7 @@ Function New-ToastNotification {
[string]$Text
)
[void][Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]
$Template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02)
$XML = [xml]$Template.GetXml()