Fix parameter and item type declaration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e14f9469cb
commit
86809640b4
@ -6,7 +6,7 @@ Param(
|
|||||||
|
|
||||||
Function New-ToastNotification {
|
Function New-ToastNotification {
|
||||||
Param(
|
Param(
|
||||||
[Parameter]
|
[Parameter()]
|
||||||
[string]$Stream = 'OVF Properties',
|
[string]$Stream = 'OVF Properties',
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory)]
|
||||||
[string]$Title,
|
[string]$Title,
|
||||||
@ -14,6 +14,7 @@ Function New-ToastNotification {
|
|||||||
[string]$Text
|
[string]$Text
|
||||||
)
|
)
|
||||||
|
|
||||||
|
[void][Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]
|
||||||
$Template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02)
|
$Template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02)
|
||||||
|
|
||||||
$XML = [xml]$Template.GetXml()
|
$XML = [xml]$Template.GetXml()
|
||||||
|
Loading…
Reference in New Issue
Block a user