Udostępnij za pośrednictwem


CustomPSSnapIn Class

Definition

Raw mshsnapin is a class for allowing mshsnapin developers to directly specify the set of cmdlets, providers, types, formats, assemblies available in the mshsnapin.

To use this class, mshsnapin developers will drive from it and fill in details about cmdlet, provider, type, format, assemblies.

This class will also facilitate the registration of the mshsnapin through installutil.exe.

This class will be built with monad core engine dll.

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

Remarks

Developers should derive from this class to implement their own custom mshsnapins.

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

Constructors

CustomPSSnapIn()

Properties

Cmdlets

Gets the cmdlets defined in custom mshsnapin.

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

Gets the formatsdefined in raw mshsnapin.

Name (Inherited from PSSnapInInstaller)
Providers

Gets the providers defined in custom mshsnapin.

Types

Gets the types defined in custom mshsnapin.

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

Methods

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