Sdílet prostřednictvím


InitialSessionState.Create Method

Definition

Overloads

Create(String)

Want to get away from SnapIn and console file. Have modules and assemblies instead. Specify the registered SnapIn name or name collection.

Create(String[], PSConsoleLoadException)
Create()

Creates an empty InitialSessionState object...

Create(String)

Want to get away from SnapIn and console file. Have modules and assemblies instead. Specify the registered SnapIn name or name collection.

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

Parameters

snapInName
String

Returns

Applies to

Create(String[], PSConsoleLoadException)

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

Parameters

snapInNameCollection
String[]

Returns

Applies to

Create()

Creates an empty InitialSessionState object...

public:
 static System::Management::Automation::Runspaces::InitialSessionState ^ Create();
public static System.Management.Automation.Runspaces.InitialSessionState Create ();
static member Create : unit -> System.Management.Automation.Runspaces.InitialSessionState
Public Shared Function Create () As InitialSessionState

Returns

Applies to