Compartilhar via


RunspaceConfiguration.RemovePSSnapIn(String, PSSnapInException) Method

Definition

Remove a PSSnapin from runspace configuration.

public:
 System::Management::Automation::PSSnapInInfo ^ RemovePSSnapIn(System::String ^ name, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSSnapInException ^ % warning);
public System.Management.Automation.PSSnapInInfo RemovePSSnapIn (string name, out System.Management.Automation.Runspaces.PSSnapInException warning);
member this.RemovePSSnapIn : string * PSSnapInException -> System.Management.Automation.PSSnapInInfo
Public Function RemovePSSnapIn (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 removing PSSnapin.

RunspaceConfiguration derived class should not override this member.

Applies to