RunspaceConfiguration.AddPSSnapIn(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.
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.