Serves as a base class for Windows Powershell snap-ins that are used to register all the cmdlets and providers in an assembly. (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 PSSnapIn
Public MustInherit Class PSSnapIn
Inherits PSSnapInInstaller
public abstract class PSSnapIn : PSSnapInInstaller
public ref class PSSnapIn abstract : public PSSnapInInstaller
public abstract class PSSnapIn extends PSSnapInInstaller
public abstract class PSSnapIn extends PSSnapInInstaller
This class should be used when you want to register all the cmdlets and providers in an assembly. If you want to register a subset of the cmdlets and providers in the assembly, or if you want to register cmdlets and providers that are in different assemblies, use the CustomPSSnapIn class.
Your snap-in assembly should be installed into protected directories just as they would be with other operating system programs; otherwise, malicious users could replace your assembly with unsafe code. These assemblies are used to register cmdlets and providers, which allows you to extend the functionality of a runspace with the functionality of your own cmdlets and providers. For more information about Windows Powershell snap-ins, see Windows PowerShell Snap-ins.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Configuration.Install.Installer
System.Management.Automation.PSInstaller
System.Management.Automation.PSSnapInInstaller
System.Management.Automation.PSSnapIn
Derived Classes
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2 Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2