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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IReferenceService.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.ComponentModel;
  18.    
  19.     using System.Diagnostics;
  20.     using System;
  21.    
  22.     /// <devdoc>
  23.     /// <para>
  24.     /// Provides an interface to get names and references to objects. These
  25.     /// methods can search using the specified name or reference.
  26.     /// </para>
  27.     /// </devdoc>
  28.     public interface IReferenceService
  29.     {
  30.        
  31.         /// <devdoc>
  32.         /// <para>
  33.         /// Gets the base component that anchors this reference.
  34.         /// </para>
  35.         /// </devdoc>
  36.         IComponent GetComponent(object reference);
  37.        
  38.         /// <devdoc>
  39.         /// <para>
  40.         /// Gets a reference for the specified name.
  41.         /// </para>
  42.         /// </devdoc>
  43.         object GetReference(string name);
  44.        
  45.         /// <devdoc>
  46.         /// <para>
  47.         /// Gets the name for this reference.
  48.         /// </para>
  49.         /// </devdoc>
  50.         string GetName(object reference);
  51.        
  52.         /// <devdoc>
  53.         /// <para>
  54.         /// Gets all available references.
  55.         /// </para>
  56.         /// </devdoc>
  57.         object[] GetReferences();
  58.        
  59.         /// <devdoc>
  60.         /// <para>
  61.         /// Gets all available references of this type.
  62.         /// </para>
  63.         /// </devdoc>
  64.         object[] GetReferences(Type baseType);
  65.     }
  66. }

Developer Fusion