Assembly: System.Management.Automation (in System.Management.Automation.dll)
The methods of this class must be overridden to provide the ability to create drives, initialize default drives (those that the specific provider should supply given the user environment), as well as remove drives.
Although it is possible to derive from this class, this class does not define the methods needed to get or change the data (referred to as "item") in the data store. In most cases, developers should derive from one of the following classes to implement their own providers:ItemCmdletProvider
This base class defines methods that can get, set, and clear the items of a data store.ContainerCmdletProvider
This base class defines methods that can get the child items (or just their names) of the data store, as well as methods that create, copy, rename, and remove items of a data store.NavigationCmdletProvider
Serves as the base class for providers that perform operations against items in a multilevel store.
For more information about providers, see Windows PowerShell Providers.
Windows PowerShell provides a TemplateProvider.cs file that is available on the Windows SDK. To start writing your own provider make a copy of this file and use that copy to create your provider, removing any functionality that you do not need. For more information about designing a provider, see Designing Your Windows PowerShell Provider.
Target PlatformsWindows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP, Windows 7, Windows 2008 R2, Windows Developer Preview, Windows Server Developer Preview
Send comments about this topic to Microsoft.