ContainerCmdletProvider Class

Definition

The base class for Cmdlet providers that expose a single level of items.

public abstract class ContainerCmdletProvider : System.Management.Automation.Provider.ItemCmdletProvider
Inheritance
Derived

Inherited Members

System.Management.Automation.Provider.CmdletProvider

System.Management.Automation.Provider.DriveCmdletProvider

System.Management.Automation.Provider.ItemCmdletProvider

Remarks

The ContainerCmdletProvider class is base class that a provider derives from to implement methods that allow the use of a set of core commands against the objects that the provider gives access to. By deriving from this class users can take advantage of all the features of the ItemCmdletProvider as well as globbing and the following commands when targetting this provider: get-childitem rename-item new-item remove-item set-location push-location pop-location get-location -stack

Constructors

ContainerCmdletProvider()

Methods

ConvertPath(String, String, String, String)

Gets a new provider-specific path and filter (if any) that corresponds to the given path.

CopyItem(String, String, Boolean)

Copies an item at the specified path to an item at the copyPath.

CopyItemDynamicParameters(String, String, Boolean)

Gives the provider an opportunity to attach additional parameters to the copy-item cmdlet.

GetChildItems(String, Boolean)

Gets the children of the item at the specified path.

GetChildItems(String, Boolean, UInt32)
GetChildItemsDynamicParameters(String, Boolean)

Gives the provider an opportunity to attach additional parameters to the get-childitem cmdlet.

GetChildNames(String, ReturnContainers)

Gets names of the children of the specified path.

GetChildNamesDynamicParameters(String)

Gives the provider an opportunity to attach additional parameters to the get-childitem -name cmdlet.

HasChildItems(String)

Determines if the item at the specified path has children.

NewItem(String, String, Object)

Creates a new item at the specified path.

NewItemDynamicParameters(String, String, Object)

Gives the provider an opportunity to attach additional parameters to the new-item cmdlet.

RemoveItem(String, Boolean)

Removes (deletes) the item at the specified path

RemoveItemDynamicParameters(String, Boolean)

Gives the provider an opportunity to attach additional parameters to the remove-item cmdlet.

RenameItem(String, String)

Renames the item at the specified path to the new name provided.

RenameItemDynamicParameters(String, String)

Gives the provider an opportunity to attach additional parameters to the rename-item cmdlet.