Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.45 KB

File metadata and controls

31 lines (24 loc) · 1.45 KB
description AccessDbProviderSample02 Code Sample
ms.date 09/13/2016
ms.topic reference
title AccessDbProviderSample02 Code Sample

AccessDbProviderSample02 Code Sample

The following code shows the implementation of the Windows PowerShell provider described in Creating a Windows PowerShell Drive Provider. This implementation creates a path, makes a connection to an Access database, and then removes the drive.

Note

You can download the C# source file (AccessDBSampleProvider02.cs) for this provider using the Microsoft 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/AccessDBProviderSample02/AccessDBProviderSample02.cs" range="11-154":::

See Also

Windows PowerShell Programmer's Guide

Windows PowerShell SDK