Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 3.7 KB

File metadata and controls

66 lines (53 loc) · 3.7 KB
description AccessDBProviderSample04
ms.date 09/13/2016
ms.topic reference
title AccessDBProviderSample04

AccessDBProviderSample04

This sample shows how to overwrite container methods to support calls to the Copy-Item, Get-ChildItem, New-Item, and Remove-Item cmdlets. These methods should be implemented when the data store contains items that are containers. A container is a group of child items under a common parent item. The provider class in this sample derives from the System.Management.Automation.Provider.ContainerCmdletProvider class.

Demonstrates

Important

Your provider class will most likely derive from the System.Management.Automation.Provider.NavigationCmdletProvider

This sample demonstrates the following:

Example

This sample shows how to overwrite the methods needed to copy, create, and remove items, as well as methods for getting the child items of a parent item.

:::code language="csharp" source="~/../powershell-sdk-samples/SDK-2.0/csharp/AccessDBProviderSample04/AccessDBProviderSample04.cs" range="11-1635":::

See Also

System.Management.Automation.Provider.ItemCmdletProvider

System.Management.Automation.Provider.ContainerCmdletProvider

System.Management.Automation.Provider.NavigationCmdletProvider

Designing Your Windows PowerShell Provider