The Labs \ Source Viewer \ SSCLI \ System.ComponentModel.Design \ ITypeResolutionService

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ITypeResolutionService.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. /*
  16. */
  17. namespace System.ComponentModel.Design
  18. {
  19.     using System;
  20.     using System.Reflection;
  21.    
  22.     /// <devdoc>
  23.     /// <para>
  24.     /// The type resolution service is used to load types at design time.
  25.     /// </para>
  26.     /// </devdoc>
  27.     public interface ITypeResolutionService
  28.     {
  29.        
  30.         /// <devdoc>
  31.         /// Retrieves the requested assembly.
  32.         /// </devdoc>
  33.         Assembly GetAssembly(AssemblyName name);
  34.        
  35.         /// <devdoc>
  36.         /// Retrieves the requested assembly.
  37.         /// </devdoc>
  38.         Assembly GetAssembly(AssemblyName name, bool throwOnError);
  39.        
  40.         /// <devdoc>
  41.         /// Loads a type with the given name.
  42.         /// </devdoc>
  43.         Type GetType(string name);
  44.        
  45.         /// <devdoc>
  46.         /// Loads a type with the given name.
  47.         /// </devdoc>
  48.         Type GetType(string name, bool throwOnError);
  49.        
  50.         /// <devdoc>
  51.         /// Loads a type with the given name.
  52.         /// </devdoc>
  53.         Type GetType(string name, bool throwOnError, bool ignoreCase);
  54.        
  55.         /// <devdoc>
  56.         /// References the given assembly name. Once an assembly has
  57.         /// been referenced types may be loaded from it without
  58.         /// qualifying them with the assembly.
  59.         /// </devdoc>
  60.         void ReferenceAssembly(AssemblyName name);
  61.        
  62.         /// <devdoc>
  63.         /// <para>
  64.         /// Returns the path to the file name from which the assembly was loaded.
  65.         /// </para>
  66.         /// </devdoc>
  67.         string GetPathOfAssembly(AssemblyName name);
  68.     }
  69. }

Developer Fusion