Skip to content

Latest commit

 

History

History
77 lines (64 loc) · 4.44 KB

File metadata and controls

77 lines (64 loc) · 4.44 KB
description AccessDBProviderSample03
ms.date 09/13/2016
ms.topic reference
title AccessDBProviderSample03

AccessDBProviderSample03

This sample shows how to overwrite the System.Management.Automation.Provider.ItemCmdletProvider.GetItem* and System.Management.Automation.Provider.ItemCmdletProvider.SetItem* methods to support calls to the Get-Item and Set-Item cmdlets. The provider class in this sample derives from the System.Management.Automation.Provider.ItemCmdletProvider 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 get and set items in a Microsoft Access data base.

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

See Also

System.Management.Automation.Provider.ItemCmdletProvider

System.Management.Automation.Provider.ContainerCmdletProvider

System.Management.Automation.Provider.NavigationCmdletProvider

Designing Your Windows PowerShell Provider