Delen via


RunspaceConfiguration.AddPSSnapIn(String, PSSnapInException) Method

Definition

Add a PSSnapin to runspace configuration.

public:
 System::Management::Automation::PSSnapInInfo ^ AddPSSnapIn(System::String ^ name, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSSnapInException ^ % warning);
public System.Management.Automation.PSSnapInInfo AddPSSnapIn (string name, out System.Management.Automation.Runspaces.PSSnapInException warning);
member this.AddPSSnapIn : string * PSSnapInException -> System.Management.Automation.PSSnapInInfo
Public Function AddPSSnapIn (name As String, ByRef warning As PSSnapInException) As PSSnapInInfo

Parameters

name
String

name of the PSSnapin

warning
PSSnapInException

warning message

Returns

Remarks

This member provides logic for adding PSSnapin.

RunspaceConfiguration derived class should not override this member.

Applies to