Search notes:
System.Management.Automation.ScriptBlock (class)
PS C:\> $scriptBlock = { write-host 'Hello world' }
PS C:\> $scriptBlock.GetType().FullName
System.Management.Automation.ScriptBlock
PS C:\> 1 .. 3 | forEach-object $scriptBlock
Hello world
Hello world
Hello world
Properties and Methods
Ast | |
Attributes | |
CheckRestrictedLanguage() | |
Create() | |
DebuggerHidden | |
File | |
[GetNewClosure() | |
GetPowerShell() | |
GetSteppablePipeline() | |
Id | |
Invoke() | |
InvokeReturnAsIs() | |
InvokeWithContext() | |
IsConfiguration | |
IsFilter | |
Module | |
StartPosition | |
ToString() | |