about_Reserved_Words - PowerShell


 

Lists the reserved words that cannot be used as identifiers because they (about_Reserved_Words)

   
# TOPIC
about_Reserved_Words

# SHORT DESCRIPTION
Lists the reserved words that cannot be used as identifiers because they
have a special meaning in Windows PowerShell.

# LONG DESCRIPTION
There are certain words that have special meaning in Windows PowerShell.
When these words appear without quotation marks, Windows PowerShell
attempts to apply their special meaning rather than treating them as
character strings. To use these words as parameter arguments in a command
or script without invoking their special meaning, enclose the reserved
words in quotation marks.

The following are the reserved words in Windows PowerShell:

Break
Continue
Do
Else
Elseif
Filter
For
Foreach
Function
If
In
Local
Private
Return
Switch
Until
Where
While

For information about language statements, such as Foreach, If,
For, and While, type "get-help", type the prefix "about_", and then type
the name of the statement. For example, to get information about the
Foreach statement, type:

get-help about_foreach

For information about the Filter statement or the Return statement
syntax, type:

get-help about_functions

SEE ALSO
about_Command_Syntax
about_Escape_Characters
about_Language_Keywords
about_Parsing
about_Quoting_Rules
about_Script_Blocks
about_Special_Characters

C:\Windows>powershell get-help about_Return -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Lists the reserved words that cannot be used as identifiers because they

HTTP: ... PS_Windows/en/about_Reserved_Words.htm
0.156
15481

Safely remove hardware if icon is missing, it works on Windows 10, 8.1, ...! 

 /

The difference from MS 365 Office to 2016 Office!

 /

Wie kann man das WLAN / WIFI deaktivieren bei Windows-7 (8.1, 10)?

 /

A digital desktop clock for Windows with various settings!

 /

ExperienceIndex on Windows-10 with ExperienceIndex OK!

 /

Diverse Windows Service Packs!

 /

Has DesktopOK Save option for correct layout naming at multi-screens?

 /

Windows 8.1 and 10 registry autostart entries for auto run, (find, all user) ?

 /

Start navigation click sound in Windows 10 (Enable, Explorer)?

 /

Enable automatic backup Windows 8.1 and 10 (create a File History)?

 /

Check box in the Quad File Explorer for file marking!

 /

Gruppierung abstellen im Datei-Explorer unter Windows-10!

 /