Udostępnij za pośrednictwem


InitialSessionState.CreateFrom Method

Definition

Overloads

CreateFrom(String, PSConsoleLoadException)
CreateFrom(String[], PSConsoleLoadException)

CreateFrom(String, PSConsoleLoadException)

public:
 static System::Management::Automation::Runspaces::InitialSessionState ^ CreateFrom(System::String ^ snapInPath, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSConsoleLoadException ^ % warnings);
public static System.Management.Automation.Runspaces.InitialSessionState CreateFrom (string snapInPath, out System.Management.Automation.Runspaces.PSConsoleLoadException warnings);
static member CreateFrom : string * PSConsoleLoadException -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function CreateFrom (snapInPath As String, ByRef warnings As PSConsoleLoadException) As InitialSessionState

Parameters

snapInPath
String

Returns

Applies to

CreateFrom(String[], PSConsoleLoadException)

public:
 static System::Management::Automation::Runspaces::InitialSessionState ^ CreateFrom(cli::array <System::String ^> ^ snapInPathCollection, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSConsoleLoadException ^ % warnings);
public static System.Management.Automation.Runspaces.InitialSessionState CreateFrom (string[] snapInPathCollection, out System.Management.Automation.Runspaces.PSConsoleLoadException warnings);
static member CreateFrom : string[] * PSConsoleLoadException -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function CreateFrom (snapInPathCollection As String(), ByRef warnings As PSConsoleLoadException) As InitialSessionState

Parameters

snapInPathCollection
String[]

Returns

Applies to