Assembly: System.Management.Automation (in System.Management.Automation.dll)
A Windows PowerShell snap-in is created using one of the following two classes:PSSnapIn
Derive from this class to create a snap-in that registers all the cmdlets and providers in an assembly.CustomPSSnapIn
Derive from this class to create a snap-in that registers a specific list of cmdlets and providers. A custom snap-in can be used to register a subset of the cmdlets and providers in a large assembly or register cmdlets and providers that are implemented in different assemblies.