AppDomain.ApplyPolicy
If you have dealt with assembly loading, chances are you have asked this question:
How do I know which assembly CLR will really load if I ask it to load some assembly?
In .Net framework 1.0 and 1.1, there is really no good way other than load the assembly.
In Whidbey, we introduce AppDomain.ApplyPolicy. It takes an assembly identity string as input, evaluates binding policy, and returns the post policy assembly identity.
It does not tell you which file CLR will load. But at least you are confident about the assembly identity.
It is an instance method on AppDomain class. So you are able to evaluate the policy on any appdomain.
Comments
- Anonymous
July 19, 2004
The comment has been removed - Anonymous
July 19, 2004
The comment has been removed