DriveCmdletProvider Class

Definition

The base class for Cmdlet providers that can be exposed through MSH drives.

public abstract class DriveCmdletProvider : System.Management.Automation.Provider.CmdletProvider
Inheritance
DriveCmdletProvider
Derived

Inherited Members

System.Management.Automation.Provider.CmdletProvider

Remarks

Although it is possible to derive from this base class to implement a Cmdlet Provider, in most cases one should derive from ItemCmdletProvider, ContainerCmdletProvider, or NavigationCmdletProvider

Constructors

DriveCmdletProvider()

Methods

InitializeDefaultDrives()

Gives the provider the ability to map drives after initialization.

NewDrive(PSDriveInfo)

Gives the provider an opportunity to validate the drive that is being added. It also allows the provider to modify parts of the PSDriveInfo object. This may be done for performance or reliability reasons or to provide extra data to all calls using the Drive.

NewDriveDynamicParameters()

Gives the provider an opportunity to attach additional parameters to the New-PSDrive cmdlet.

RemoveDrive(PSDriveInfo)

Gives the provider an opportunity to clean up any provider specific data for the drive that is going to be removed.