Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.59 KB

File metadata and controls

32 lines (25 loc) · 1.59 KB
description AccessDbProviderSample01 Code Sample
ms.date 09/13/2016
ms.topic reference
title AccessDbProviderSample01 Code Sample

AccessDbProviderSample01 Code Sample

The following code shows the implementation of the Windows PowerShell provider described in Creating a Basic Windows PowerShell Provider. This implementation provides methods for starting and stopping the provider, and although it does not provide a means to access a data store or to get or set the data in the data store, it does provide the basic functionality that is required by all providers.

Note

You can download the C# source file (AccessDBSampleProvider01.cs) for this provider by using the Windows Software Development Kit for Windows Vista and Microsoft .NET Framework 3.0 Runtime Components. For download instructions, see How to Install Windows PowerShell and Download the Windows PowerShell SDK. The downloaded source files are available in the <PowerShell Samples> directory. For more information about other Windows PowerShell provider implementations, see Designing Your Windows PowerShell Provider.

Code Sample

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

See Also

Windows PowerShell Programmer's Guide

Windows PowerShell SDK