DriveCmdletProvider DriveCmdletProvider 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
type DriveCmdletProvider = class
    inherit CmdletProvider
Public MustInherit Class DriveCmdletProvider
Inherits CmdletProvider
Inheritance
DriveCmdletProviderDriveCmdletProviderDriveCmdletProvider
Derived

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() DriveCmdletProvider() DriveCmdletProvider()

Methods

GetResourceString(String, String) GetResourceString(String, String) GetResourceString(String, String) Inherited from CmdletProvider
InitializeDefaultDrives() InitializeDefaultDrives() InitializeDefaultDrives()

Gives the provider the ability to map drives after initialization.

NewDrive(PSDriveInfo) NewDrive(PSDriveInfo) 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() NewDriveDynamicParameters() NewDriveDynamicParameters()

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

RemoveDrive(PSDriveInfo) RemoveDrive(PSDriveInfo) RemoveDrive(PSDriveInfo)

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

ShouldContinue(String, String) ShouldContinue(String, String) ShouldContinue(String, String) Inherited from CmdletProvider
ShouldContinue(String, String, Boolean, Boolean) ShouldContinue(String, String, Boolean, Boolean) ShouldContinue(String, String, Boolean, Boolean) Inherited from CmdletProvider
ShouldProcess(String) ShouldProcess(String) ShouldProcess(String) Inherited from CmdletProvider
ShouldProcess(String, String) ShouldProcess(String, String) ShouldProcess(String, String) Inherited from CmdletProvider
ShouldProcess(String, String, String) ShouldProcess(String, String, String) ShouldProcess(String, String, String) Inherited from CmdletProvider
ShouldProcess(String, String, String, ShouldProcessReason) ShouldProcess(String, String, String, ShouldProcessReason) ShouldProcess(String, String, String, ShouldProcessReason) Inherited from CmdletProvider
Start(ProviderInfo) Start(ProviderInfo) Start(ProviderInfo) Inherited from CmdletProvider
StartDynamicParameters() StartDynamicParameters() StartDynamicParameters() Inherited from CmdletProvider
Stop() Stop() Stop() Inherited from CmdletProvider
StopProcessing() StopProcessing() StopProcessing() Inherited from CmdletProvider
ThrowTerminatingError(ErrorRecord) ThrowTerminatingError(ErrorRecord) ThrowTerminatingError(ErrorRecord) Inherited from CmdletProvider
TransactionAvailable() TransactionAvailable() TransactionAvailable() Inherited from CmdletProvider
WriteDebug(String) WriteDebug(String) WriteDebug(String) Inherited from CmdletProvider
WriteError(ErrorRecord) WriteError(ErrorRecord) WriteError(ErrorRecord) Inherited from CmdletProvider
WriteInformation(InformationRecord) WriteInformation(InformationRecord) WriteInformation(InformationRecord) Inherited from CmdletProvider
WriteInformation(Object, String[]) WriteInformation(Object, String[]) WriteInformation(Object, String[]) Inherited from CmdletProvider
WriteItemObject(Object, String, Boolean) WriteItemObject(Object, String, Boolean) WriteItemObject(Object, String, Boolean) Inherited from CmdletProvider
WriteProgress(ProgressRecord) WriteProgress(ProgressRecord) WriteProgress(ProgressRecord) Inherited from CmdletProvider
WritePropertyObject(Object, String) WritePropertyObject(Object, String) WritePropertyObject(Object, String) Inherited from CmdletProvider
WriteSecurityDescriptorObject(ObjectSecurity, String) WriteSecurityDescriptorObject(ObjectSecurity, String) WriteSecurityDescriptorObject(ObjectSecurity, String) Inherited from CmdletProvider
WriteVerbose(String) WriteVerbose(String) WriteVerbose(String) Inherited from CmdletProvider
WriteWarning(String) WriteWarning(String) WriteWarning(String) Inherited from CmdletProvider

Properties

Credential Credential Credential Inherited from CmdletProvider
CurrentPSTransaction CurrentPSTransaction CurrentPSTransaction Inherited from CmdletProvider
DynamicParameters DynamicParameters DynamicParameters Inherited from CmdletProvider
Exclude Exclude Exclude Inherited from CmdletProvider
Filter Filter Filter Inherited from CmdletProvider
Force Force Force Inherited from CmdletProvider
Host Host Host Inherited from CmdletProvider
Include Include Include Inherited from CmdletProvider
InvokeCommand InvokeCommand InvokeCommand Inherited from CmdletProvider
InvokeProvider InvokeProvider InvokeProvider Inherited from CmdletProvider
PSDriveInfo PSDriveInfo PSDriveInfo Inherited from CmdletProvider
ProviderInfo ProviderInfo ProviderInfo Inherited from CmdletProvider
SessionState SessionState SessionState Inherited from CmdletProvider
Stopping Stopping Stopping Inherited from CmdletProvider

Applies to