其他範例包括 字串 類型(亦即 System.String),其具有許多多載方法。 雖然PowerShell 具有解析不完全符合多載簽章的方法呼叫的規則,但 PowerShell 本身並不提供定義多載方法的方式。 注意 編輯器的附註:PowerShell 5.0 新增了定義腳本型類別的功能。 這些類別可以包含多載方法。 3.7.2 方法多載解析 假設方法呼叫 (...
token: keyword variable command command-parameter command-argument-token integer-literal real-literal string-literal type-literal operator-or-punctuator 描述: 令牌 是PowerShell 語言中最小的語言單元。 令牌可以透過換行符、註解、空格符或其任何組合分隔。 2.3.1 關鍵詞 語法: Syntax 複製 keyword: one ...
string。 指定目标计算机的密码。 接受在生成/发布定义中定义的变量,$(passwordVariable)。 可以将变量类型标记为secret来保护它。 ScriptType-脚本类型 string。 允许的值:FilePath(文件路径),Inline。 默认值:Inline。 指定要执行的脚本的类型:内联或文件路径。
switch [-regex|-wildcard|-exact][-casesensitive] ( <value> ) { <string>|<number>|<variable>|{ <expression> } {<statement list>} <string>|<number>|<variable>|{ <expression> } {<statement list>} ... default {<statement list>} } ...
(0x757575) Parameter =$PSStyle.Foreground.FromRGB(0x000080) String =$PSStyle.Foreground.FromRGB(0x8b0000) Type =$PSStyle.Foreground.FromRGB(0x008080) Variable =$PSStyle.Foreground.FromRGB(0xff4500) ListPredictionSelected =$PSStyle.Background.FromRGB(0x93A1A1) Selection =$PSStyle.Background....
String = [ConsoleColor]::Gray InlinePrediction = [ConsoleColor]::DarkRed } } Set-PSReadLineOption @PSReadLineOptions # Fzf Import-Module PSFzf Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+f' -PSReadlineChordReverseHistory 'Ctrl+r'
Connect-ExchangeOnline-UserPrincipalName<UPN> [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-SkipLoadingFormatData] For detailed syntax and parameter information, seeConnect-ExchangeOnline. <UPN>is your account in user principal name format (for example,na...
Connect-ExchangeOnline-UserPrincipalName<UPN> [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-SkipLoadingFormatData] For detailed syntax and parameter information, seeConnect-ExchangeOnline. <UPN>is your account in user principal name format (for example,na...
Connect-ExchangeOnline-UserPrincipalName<UPN> [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-SkipLoadingFormatData] For detailed syntax and parameter information, seeConnect-ExchangeOnline. <UPN>is your account in user principal name format (for example,na...
{"__typename":"InheritableStringSettingWithPossibleValues","key":"layout.friendly_dates_enabled","value":"false","localValue":"true","possibleValues":["true","false"]},"dateDisplayFormat":{"__typename":"InheritableStringSetting","key":"layout.format_pattern_date","value":"MMM dd yyyy","...