InitialSessionState.ImportPSSnapIn(String, PSSnapInException) Method

Definition

Caution

Custom PSSnapIn is deprecated. Please use a module instead.

Need to have SnapIn support till we move to modules.

public:
 System::Management::Automation::PSSnapInInfo ^ ImportPSSnapIn(System::String ^ name, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSSnapInException ^ % warning);
public System.Management.Automation.PSSnapInInfo ImportPSSnapIn (string name, out System.Management.Automation.Runspaces.PSSnapInException warning);
[System.Obsolete("Custom PSSnapIn is deprecated. Please use a module instead.", true)]
public System.Management.Automation.PSSnapInInfo ImportPSSnapIn (string name, out System.Management.Automation.Runspaces.PSSnapInException warning);
member this.ImportPSSnapIn : string * PSSnapInException -> System.Management.Automation.PSSnapInInfo
[<System.Obsolete("Custom PSSnapIn is deprecated. Please use a module instead.", true)>]
member this.ImportPSSnapIn : string * PSSnapInException -> System.Management.Automation.PSSnapInInfo
Public Function ImportPSSnapIn (name As String, ByRef warning As PSSnapInException) As PSSnapInInfo

Parameters

name
String

Returns

Attributes

Applies to