This provider can be used to build a very basic provider, register it with the system, and have it return some data to the caller.
C# | ||||
|
VB.NET |
To register the Hello World
Provider Sample in Visual Studio 2005
You can open up Provisioning Manager and import this namespace, or go to a command prompt, navigate to <SystemDrive> :Program Files\Microsoft Hosting\Development\Samples\VBNet\2.0\HelloWorld, and then use the provnamespace command to register the namespace with MPS with the following command: Provnamespace HelloWorldVB_ns.xml To register the Hello World
Provider Sample in Visual Studio 2005 using MPS SDK add-in
features
The MPS Output window should indicate that the namespace was registered successfully. A new namespace beginning with the letters "SDK" should now show up in the Provisioning Manager, and refreshing the Namespace Browser window in Visual Studio should yield the same result. Now a request can be submitted from the command line in order to test the provider. Create a sample request, similar to the following:
Submit the request to MPS. The response from MPS should be:
A test can also be run from within Visual Studio 2005 by opening the MPS Development Tools. To test the Hello Word Sample
Provider within Visual Studio 2005
|