Partilhar via


PSExecutionCmdlet.GetScriptBlockFromFile(String, Boolean) Method

Definition

Reads content of file and converts it to a scriptblock.

protected:
 System::Management::Automation::ScriptBlock ^ GetScriptBlockFromFile(System::String ^ filePath, bool isLiteralPath);
protected System.Management.Automation.ScriptBlock GetScriptBlockFromFile (string filePath, bool isLiteralPath);
member this.GetScriptBlockFromFile : string * bool -> System.Management.Automation.ScriptBlock
Protected Function GetScriptBlockFromFile (filePath As String, isLiteralPath As Boolean) As ScriptBlock

Parameters

filePath
String
isLiteralPath
Boolean

Returns

Applies to