NewModuleCommand.ScriptBlock Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specify a scriptblock to use for the module body...
public:
property System::Management::Automation::ScriptBlock ^ ScriptBlock { System::Management::Automation::ScriptBlock ^ get(); void set(System::Management::Automation::ScriptBlock ^ value); };
public System.Management.Automation.ScriptBlock ScriptBlock { get; set; }
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="Name", Position=1)]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ScriptBlock", Position=0)]
[System.Management.Automation.ValidateNotNull]
public System.Management.Automation.ScriptBlock ScriptBlock { get; set; }
member this.ScriptBlock : System.Management.Automation.ScriptBlock with get, set
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="Name", Position=1)>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ScriptBlock", Position=0)>]
[<System.Management.Automation.ValidateNotNull>]
member this.ScriptBlock : System.Management.Automation.ScriptBlock with get, set
Public Property ScriptBlock As ScriptBlock
Property Value
- Attributes