PSSnapInInstaller Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Serves as a base class for classes used to create Windows PowerShell snap-ins. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.

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

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Configuration.Install.Installer
        System.Management.Automation.PSInstaller
          System.Management.Automation.PSSnapInInstaller
            System.Management.Automation.CustomPSSnapIn
            System.Management.Automation.PSSnapIn

public abstract class PSSnapInInstaller : PSInstaller

NameDescription
System_CAPS_protmethodPSSnapInInstaller()

Creates a new PSSnapInInstaller object.

NameDescription
System_CAPS_protpropertyCanRaiseEvents

(Inherited from Component.)

System_CAPS_pubpropertyContainer

(Inherited from Component.)

System_CAPS_pubpropertyContext

(Inherited from Installer.)

System_CAPS_pubpropertyDescription

Gets the description of the Windows PowerShell snap-in.

System_CAPS_pubpropertyDescriptionResource

Gets the localization resource information for the description of the Windows PowerShell snap-in.

System_CAPS_protpropertyDesignMode

(Inherited from Component.)

System_CAPS_protpropertyEvents

(Inherited from Component.)

System_CAPS_pubpropertyHelpText

(Inherited from Installer.)

System_CAPS_pubpropertyInstallers

(Inherited from Installer.)

System_CAPS_pubpropertyName

Gets the name of the Windows PowerShell snap-in.

System_CAPS_pubpropertyParent

(Inherited from Installer.)

System_CAPS_pubpropertySite

(Inherited from Component.)

System_CAPS_pubpropertyVendor

Gets the vendor of the Windows PowerShell snap-in.

System_CAPS_pubpropertyVendorResource

Gets the localization resource information for the vendor of the Windows PowerShell snap-in.

NameDescription
System_CAPS_pubmethodCommit(IDictionary)

(Inherited from Installer.)

System_CAPS_pubmethodCreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

(Inherited from Component.)

System_CAPS_protmethodDispose(Boolean)

(Inherited from Component.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Component.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodGetService(Type)

(Inherited from Component.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodInstall(IDictionary)

Installs the component in the Windows PowerShell runtime.(Inherited from PSInstaller.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodOnAfterInstall(IDictionary)

(Inherited from Installer.)

System_CAPS_protmethodOnAfterRollback(IDictionary)

(Inherited from Installer.)

System_CAPS_protmethodOnAfterUninstall(IDictionary)

(Inherited from Installer.)

System_CAPS_protmethodOnBeforeInstall(IDictionary)

(Inherited from Installer.)

System_CAPS_protmethodOnBeforeRollback(IDictionary)

(Inherited from Installer.)

System_CAPS_protmethodOnBeforeUninstall(IDictionary)

(Inherited from Installer.)

System_CAPS_protmethodOnCommitted(IDictionary)

(Inherited from Installer.)

System_CAPS_protmethodOnCommitting(IDictionary)

(Inherited from Installer.)

System_CAPS_pubmethodRollback(IDictionary)

Rolls back the component to a previous state.(Inherited from PSInstaller.)

System_CAPS_pubmethodToString()

(Inherited from Component.)

System_CAPS_pubmethodUninstall(IDictionary)

Uninstalls the component from the Windows PowerShell runtime.(Inherited from PSInstaller.)

NameDescription
System_CAPS_pubeventAfterInstall

(Inherited from Installer.)

System_CAPS_pubeventAfterRollback

(Inherited from Installer.)

System_CAPS_pubeventAfterUninstall

(Inherited from Installer.)

System_CAPS_pubeventBeforeInstall

(Inherited from Installer.)

System_CAPS_pubeventBeforeRollback

(Inherited from Installer.)

System_CAPS_pubeventBeforeUninstall

(Inherited from Installer.)

System_CAPS_pubeventCommitted

(Inherited from Installer.)

System_CAPS_pubeventCommitting

(Inherited from Installer.)

System_CAPS_pubeventDisposed

(Inherited from Component.)

Use the following two classes to create your Windows PowerShell snap-in:

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.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: