RunspaceConfiguration.RemovePSSnapIn(String, PSSnapInException) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.