DriveCmdletProvider Methods

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetResourceString  Gets a resource string that corresponds to the specified resource base key and identifier. (Inherited from CmdletProvider)
public methodGetType  (Inherited from Object)
public methodShouldContinue  Overloaded. Sends a query to the user to confirm that the operation should be performed. The variants of this method can send the query with or without providing yes-to-all and no-to-all options. (Inherited from CmdletProvider)
public methodShouldProcess  Overloaded. Confirms an operation with the user by sending a query to the user. The variants of this method can be used to send the name of the resource to be changed; send the resource name and the action to be taken; and send a description of the action to be taken, a query asking whether the action should be taken, and a caption. (Inherited from CmdletProvider)
public methodThrowTerminatingError  Sends an error record to Windows PowerShell when a terminating error occurs and the provider cannot continue. (Inherited from CmdletProvider)
public methodToString  (Inherited from Object)
public methodTransactionAvailable  Determines if there is a transaction available for the provider. Transactions are started by running the Start-Transaction cmdlet. This method is introduced in Windows PowerShell 2.0. (Inherited from CmdletProvider)
public methodWriteDebug  Writes a debug message to the host application. (Inherited from CmdletProvider)
public methodWriteError  Writes a nonterminating error record to the error pipeline when the provider encounters an error but can still continue to process records. (Inherited from CmdletProvider)
public methodWriteItemObject  Writes an item to the output as a PSObject object with extra data attached as notes. (Inherited from CmdletProvider)
public methodWriteProgress  Writes a progress record to the host application. (Inherited from CmdletProvider)
public methodWritePropertyObject  Writes a property object to the output as a PSObject with extra data attached as notes. (Inherited from CmdletProvider)
public methodWriteSecurityDescriptorObject  Writes a security descriptor object to the output as a PSObject object with extra data attached as notes. (Inherited from CmdletProvider)
public methodWriteVerbose  Writes a general user-level message to the host application. (Inherited from CmdletProvider)
public methodWriteWarning  Displays warning information. (Inherited from CmdletProvider)

  Name Description
protected method Finalize  (Inherited from Object)
protected method InitializeDefaultDrives Gives the provider the ability to map drives after initialization.
protected method MemberwiseClone  (Inherited from Object)
protected method NewDrive Creates a new drive based on a specified PSDriveInfo object. Overriding this method gives the provider an opportunity to validate or modify the drive information before the drive is created.
protected method NewDriveDynamicParameters Returns any additional parameters required by this instance of the New-Drive cmdlet.
protected method RemoveDrive Removes a Windows PowerShell drive. Implementing this method gives the provider an opportunity to clean up any provider-specific data for the drive that is going to be removed.
protected method Start  Starts the specified provider. This method is called by the Windows PowerShell runtime to initialize the provider when the provider is loaded into a session. (Inherited from CmdletProvider)
protected method StartDynamicParameters  Adds parameter definitions to the Start method implemented by the provider. These dynamic parameters are added at runtime based on conditions specified by the Start method.  (Inherited from CmdletProvider)
protected method Stop  Frees resources before the provider is removed from the runspace. The Windows PowerShell runtime calls this method to allow the provider a chance to stop and clean up its resources before the runtime removes the provider. (Inherited from CmdletProvider)


Show:
© 2015 Microsoft