Skip to content

Latest commit

 

History

History
77 lines (57 loc) · 3.92 KB

File metadata and controls

77 lines (57 loc) · 3.92 KB
description AccessDBProviderSample05
ms.date 09/13/2016
ms.topic reference
title AccessDBProviderSample05

AccessDBProviderSample05

This sample shows how to overwrite container methods to support calls to the Move-Item and Join-Path cmdlets. These methods should be implemented when the user needs to move items within a container and if the data store contains nested containers. The provider class in this sample derives from the System.Management.Automation.Provider.NavigationCmdletProvider class.

Demonstrates

Important

Your provider class will most likely derive from one of the following classes and possibly implement other provider interfaces:

For more information about choosing which provider class to derive from based on provider features, see Designing Your Windows PowerShell Provider.

This sample demonstrates the following:

Example

This sample shows how to overwrite the methods needed to move items in a Microsoft Access data base.

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

See Also

System.Management.Automation.Provider.ItemCmdletProvider

System.Management.Automation.Provider.ContainerCmdletProvider

System.Management.Automation.Provider.NavigationCmdletProvider

Designing Your Windows PowerShell Provider