Delen via


ScriptBlock.Create(String) Method

Definition

Create a script block based on a script to be parsed when execution context is provided.

public:
 static System::Management::Automation::ScriptBlock ^ Create(System::String ^ script);
public static System.Management.Automation.ScriptBlock Create (string script);
static member Create : string -> System.Management.Automation.ScriptBlock
Public Shared Function Create (script As String) As ScriptBlock

Parameters

script
String

The string to compile.

Returns

Applies to