Werbung

Herkunft

Kurzinformation

Creates a new System.Windows.Application

Syntax

<# .Description Creates a new System.Windows.Application .Synopsis Creates a new System.Windows.Application .Example New-Application .Example New-Application -OutputXaml .Parameter OutputXaml If Set, will output the object as XAML instead of creating it #> param( ${MainWindow}, [System.Windows.ShutdownMode] ${ShutdownMode}, ${Resources}, ${StartupUri}, [System.Management.Automation.ScriptBlock[]] ${On_Startup}, [System.Management.Automation.ScriptBlock[]] ${On_Exit}, [System.Management.Automation.ScriptBlock[]] ${On_Activated}, [System.Management.Automation.ScriptBlock[]] ${On_Deactivated}, [System.Management.Automation.ScriptBlock[]] ${On_SessionEnding}, [System.Management.Automation.ScriptBlock[]] ${On_DispatcherUnhandledException}, [System.Management.Automation.ScriptBlock[]] ${On_Navigating}, [System.Management.Automation.ScriptBlock[]] ${On_Navigated}, [System.Management.Automation.ScriptBlock[]] ${On_NavigationProgress}, [System.Management.Automation.ScriptBlock[]] ${On_NavigationFailed}, [System.Management.Automation.ScriptBlock[]] ${On_LoadCompleted}, [System.Management.Automation.ScriptBlock[]] ${On_NavigationStopped}, [System.Management.Automation.ScriptBlock[]] ${On_FragmentNavigation}, [Switch] ${OutputXaml} ) begin { } process { try { $Object = New-Object System.Windows.Application } catch { throw $_ return } Set-Property -property $psBoundParameters -inputObject $Object if ($outputXaml) { $strWrite = New-Object IO.StringWriter ([xml]([Windows.Markup.XamlWriter]::Save($Object))).Save($strWrite) return "$strWrite" } $Object } end { }

Beschreibung

Creates a new System.Windows.Application

Links

Liste aller Commandlets Mehr über die Windows PowerShell

Bücher zur PowerShell

Buchcover Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe) Windows PowerShell 5.0 - Das Praxishandbuch (1. Auflage 2016/5. Auflage Gesamtreihe)
Autoren: Dr. Holger Schwichtenberg
erschienen 2016, 996 Seiten, 49,99 €
ISBN: 3446446435
Bestellung: Amazon.de oder im Buchhandel über ISBN 3446446435

Schulungen/Seminare

Offene Seminare zur PowerShell
In-House-Seminare zur PowerShell