InitialSessionState.CreateFrom Method

Definition

Overloads

CreateFrom(String, PSConsoleLoadException)

C++
public:
 static System::Management::Automation::Runspaces::InitialSessionState ^ CreateFrom(System::String ^ snapInPath, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSConsoleLoadException ^ % warnings);

Parameters

snapInPath
String

Returns

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

CreateFrom(String[], PSConsoleLoadException)

C++
public:
 static System::Management::Automation::Runspaces::InitialSessionState ^ CreateFrom(cli::array <System::String ^> ^ snapInPathCollection, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSConsoleLoadException ^ % warnings);

Parameters

snapInPathCollection
String[]

Returns

Applies to

PowerShell SDK 7.4.0 and other versions
Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0