Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 2.35 KB

File metadata and controls

48 lines (34 loc) · 2.35 KB
description AccessDBProviderSample01
ms.date 09/13/2016
ms.topic reference
title AccessDBProviderSample01

AccessDBProviderSample01

This sample shows how to declare a provider class that derives directly from the System.Management.Automation.Provider.CmdletProvider class. It is included here only for completeness.

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 define a provider class and how to declare the CmdletProvider attribute.

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

See Also

System.Management.Automation.Provider.ItemCmdletProvider

System.Management.Automation.Provider.ContainerCmdletProvider

System.Management.Automation.Provider.NavigationCmdletProvider

Designing Your Windows PowerShell Provider