PSSnapIn Constructor

Creates a new PSSnapIn object. (Be aware that Windows PowerShell 2.0 introduced support for modules, which is the preferred method to add cmdlets and providers.)

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As New PSSnapIn

protected PSSnapIn ()
protected PSSnapIn ()
protected function PSSnapIn ()

Windows PowerShell snap-ins are assemblies used to register cmdlets and providers, which allow you to extend the functionality of a runspace with the functionality of your own cmdlets and providers. For more information aboutWindows PowerShell snap-ins, see Windows PowerShell Snap-ins.


Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft