Reordering Policies

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.

It is possible to change the order of policies defined for the Policy Injection Application Block. This is important because, if more than one policy matches a specified method, the application block will apply the policies in the order they occur in the configuration.

The next procedure describes how to reorder the policies defined for the Policy Injection Application Block using the configuration tools.

To reorder the policies in the configuration

  1. Expand the Policy Injection Application Block node in the Enterprise Library Configuration Console or Visual Studio Configuration Editor to show the policy nodes it contains.
  2. Right-click the policy node you want to move, and then click either Move Up or Move Down. If the selected policy is the first in the list, the Move Up option is not available. If the selected policy is the last in the list, the Move Down option is not available.

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.
Show: