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.


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 [delete].

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.