home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / FL_assemblyloadas_cs________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2001-06-26  |  1.2 KB  |  40 lines

  1. /**
  2.  * The ways that an Assembly can be loaded.
  3.  *
  4.  * @author  Jonathan Pryor
  5.  */
  6.  
  7. namespace ADepends
  8.   {
  9.   /**
  10.    * The technique to use when loading an Assembly from an AssemblyName.
  11.    */
  12.   internal enum AssemblyLoadAs
  13.     {
  14.     /**
  15.      * Use <b>AssemblyName.GetAssemblyName</b> to create AssemblyNames, and
  16.      * use <b>Assembly.Load</b> to load the Assembly.  This causes the
  17.      * assembly to be loaded into the Current AppDomain.
  18.      */
  19.     Default,
  20.  
  21.     /**
  22.      * Load AssemblyNames via <b>AssemblyName.GetAssemblyName</b>, and
  23.      * create a new AppDomain to load the Assembly into.  This offers
  24.      * the advantage that the custom paths can be used in creating the
  25.      * new AppDomain, which may facilitate loading the Assembly.  The
  26.      * paths that can change are the Application Base Path and the
  27.      * Relative Search Path.
  28.      */
  29.     Custom,
  30.  
  31.     /**
  32.      * For testing /only/ (it's not exposed through the GUI);
  33.      * Load AssemblyNames by setting the <b>AssemblyName.CodeBase</b> property.
  34.      * Load Assemblies in a custom AppDomain.
  35.      */
  36.     CustomGet
  37.  
  38.     } /* enum AssemblyLoadAs */
  39.   } /* namespace ADepends */
  40.