Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PSSnapIn Class

Definition

Namespace:
System.Management.Automation
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0

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.

MshSnapin is a class for regular mshsnapin's which is constructed based on mshsnapin assembly.

This class derives from PSSnapInInstaller and will be used as the base for all regular mshsnapins.

public ref class PSSnapIn abstract : System::Management::Automation::PSSnapInInstaller
public abstract class PSSnapIn : System.Management.Automation.PSSnapInInstaller
type PSSnapIn = class
 inherit PSSnapInInstaller
Public MustInherit Class PSSnapIn
Inherits PSSnapInInstaller
Inheritance
Derived

Remarks

Developers should derive from this class when implementing their own mshsnapins.

Derived mshsnapins should be denotated with [RunInstaller] attribute so that installutil.exe can directly install the mshsnapin into registry.

Constructors

Name Description
PSSnapIn()

Properties

Name Description
Description (Inherited from PSSnapInInstaller)
DescriptionResource (Inherited from PSSnapInInstaller)
Formats

Gets list of format files to be loaded for this mshsnapin.

Name (Inherited from PSSnapInInstaller)
Types

Gets list of type files to be loaded for this mshsnapin.

Vendor (Inherited from PSSnapInInstaller)
VendorResource (Inherited from PSSnapInInstaller)

Methods

Name Description
Install(IDictionary) (Inherited from PSInstaller)
Rollback(IDictionary)

Rollback this msh component

(Inherited from PSInstaller)
Uninstall(IDictionary)

Uninstall this msh component

(Inherited from PSInstaller)

Applies to