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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IComponentDiscoveryService.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. namespace System.ComponentModel.Design
  16. {
  17.     using System;
  18.     using System.Collections;
  19.     using System.ComponentModel.Design;
  20.    
  21.     /// <devdoc>
  22.     /// This service allows design-time enumeration of components across the toolbox
  23.     /// and other available types at design-time.
  24.     /// </devdoc>
  25.     public interface IComponentDiscoveryService
  26.     {
  27.        
  28.         /// <devdoc>
  29.         /// Retrieves the list of available component types, i.e. types implementing
  30.         /// IComponent. If baseType is null, all components are retrieved; otherwise
  31.         /// only component types derived from the specified baseType are returned.
  32.         /// </devdoc>
  33.         ICollection GetComponentTypes(IDesignerHost designerHost, Type baseType);
  34.     }
  35. }

Developer Fusion