2022/01/13 #スクリプトブロック属性
皆様おはようございます、
#猫でもできるPowerShell(備忘録)
#スクリプトブロック属性
PS> Get-Command Clear-Host |FL scriptblock
ScriptBlock :
$RawUI = $Host.UI.RawUI
$RawUI.CursorPosition = @{X=0;Y=0}
$RawUI.SetBufferContents(
@{Top = -1; Bottom = -1; Right = -1; Left = -1},
@{Character = ' '; ForegroundColor = $rawui.ForegroundColor; BackgroundColor =
$rawui.BackgroundColor})
# .Link
# https://go.microsoft.com/fwlink/?LinkID=225747
# .ExternalHelp System.Management.Automation.dll-help.xml
昨日調べた 定義づけ(る)Definition属性の他、ScriptBlock属性でも同じような内容が取得できました
どちらかの属性がもう片方のエイリアスになっているだけ?
ではまた;