How To: Create a Design-Time Provider Node

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

Once you have created the base node, you can create a provider node for each provider. The provider node is the design-time counterpart to the run-time provider. It uses the run-time configuration type named ProviderBaseNameData.

To create a provider node

  1. Build the solution. Right-click on the solution name, and then click Build Solution.
  2. Right-click on the design-time project.
  3. Point to Application Block Software Factory.
  4. Click CreateDesign Time Provider Node.
  5. In the Node Name box, enter the name of the node.
  6. In the Runtime Configuration Type box, click on the ellipsis.
  7. The Browse and Select a .NET Type dialog box appears.
  8. In the left pane, under Type, expand RuntimeName.
  9. Click the RuntimeName.Configuration namespace.
  10. In the right pane, click the ProviderNameData class.
  11. Click OK.
  12. The wizard fills in the Run-time Configuration Type box and the Parent UI Node box. The parentUInodegloss" parent UI node is the node that, in terms of the configuration hierarchy, contains the current node.
  13. In the Base Design Node box, click on the ellipsis.
  14. The Browse and Select a .NET Type dialog box appears.
  15. If necessary, under Type, expand the tree to see the RuntimeName.Configuration.Design namespace.
  16. In the right pane, click the name of the base node that you created with the Create a Design-Time Base Node wizard.
  17. Click OK.
  18. The wizard fills in the Base Design Node box.
  19. In the Cardinality dropdown box, select Multiple if there can be multiple instances of this provider node. Select Single if there can only be one instance of this node.
  20. If the provider has properties you want to configure, click Next. Otherwise, click Finish and go to Step 21.
  21. The provider properties appear.
  22. Build the solution. Right-click on the solution name, and then click Build Solution.
  23. Once the solution is built you will need to copy both the design-time assemblies to an Enterprise Library bin folder (for example C:\Program Files\Microsoft Enterprise Library 3.1 - May 2007\bin). This will allow you to access the folders using the configuration tools.
Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.