The Labs \ Source Viewer \ SSCLI \ System.ComponentModel \ IComNativeDescriptorHandler

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IComNativeDescriptorHandler.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
  16. {
  17.    
  18.     using Microsoft.Win32;
  19.     using System;
  20.     using System.Diagnostics;
  21.    
  22.     /// <internalonly/>
  23.     /// <devdoc>
  24.     /// <para>
  25.     /// Top level mapping layer between a COM object and TypeDescriptor.
  26.     /// </para>
  27.     /// </devdoc>
  28.     [Obsolete("This interface has been deprecated. Add a TypeDescriptionProvider to handle type TypeDescriptor.ComObjectType instead. http://go.microsoft.com/fwlink/?linkid=14202")]
  29.     public interface IComNativeDescriptorHandler
  30.     {
  31.         /// <devdoc>
  32.         /// <para>[To be supplied.]</para>
  33.         /// </devdoc>
  34.         AttributeCollection GetAttributes(object component);
  35.         /// <devdoc>
  36.         /// <para>[To be supplied.]</para>
  37.         /// </devdoc>
  38.         string GetClassName(object component);
  39.         /// <devdoc>
  40.         /// <para>[To be supplied.]</para>
  41.         /// </devdoc>
  42.         TypeConverter GetConverter(object component);
  43.         /// <devdoc>
  44.         /// <para>[To be supplied.]</para>
  45.         /// </devdoc>
  46.         EventDescriptor GetDefaultEvent(object component);
  47.         /// <devdoc>
  48.         /// <para>[To be supplied.]</para>
  49.         /// </devdoc>
  50.         PropertyDescriptor GetDefaultProperty(object component);
  51.         /// <devdoc>
  52.         /// <para>[To be supplied.]</para>
  53.         /// </devdoc>
  54.         object GetEditor(object component, Type baseEditorType);
  55.         /// <devdoc>
  56.         /// <para>[To be supplied.]</para>
  57.         /// </devdoc>
  58.         string GetName(object component);
  59.         /// <devdoc>
  60.         /// <para>[To be supplied.]</para>
  61.         /// </devdoc>
  62.         EventDescriptorCollection GetEvents(object component);
  63.         /// <devdoc>
  64.         /// <para>[To be supplied.]</para>
  65.         /// </devdoc>
  66.         EventDescriptorCollection GetEvents(object component, Attribute[] attributes);
  67.         /// <devdoc>
  68.         /// <para>[To be supplied.]</para>
  69.         /// </devdoc>
  70.         PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes);
  71.         /// <devdoc>
  72.         /// <para>[To be supplied.]</para>
  73.         /// </devdoc>
  74.         object GetPropertyValue(object component, string propertyName, ref bool success);
  75.         /// <devdoc>
  76.         /// <para>[To be supplied.]</para>
  77.         /// </devdoc>
  78.         object GetPropertyValue(object component, int dispid, ref bool success);
  79.     }
  80. }

Developer Fusion