Free mag vol1 | Page 694

CHAPTER 17  PROCESSES, APPDOMAINS, AND OBJECT CONTEXTS  Note The .NET platform does not allow you to unload a specific assembly from memory. The only way to programmatically unload libraries is to tear down the hosting application domain via the Unload() method. In addition, the AppDomain class also defines a set of properties that can be useful when you want to monitor activity of a given application domain. Table 17-6 documents some core properties of interest. Table 17-6. Select Properties of AppDomain Property Meaning in Life BaseDirectory This gets the directory path that the assembly resolver uses to probe for assemblies. CurrentDomain This static property gets the applicat [ۈ