PSExecutionCmdlet.GetScriptBlockFromFile(String, Boolean) Method
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.
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