System.ComponentModel.Component : MarshalByRefObject, IComponent, IDisposable

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:48   1553   0

#region 程序集 System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll
#endregion

using System.Runtime.InteropServices;

namespace System.ComponentModel
{
    //
    // 摘要:
    //     提供 System.ComponentModel.IComponent 接口的基实现并启用应用程序之间的对象共享。
    [ClassInterface(ClassInterfaceType.AutoDispatch)]
    [ComVisible(true)]
    [DesignerCategory("Component")]
    public class Component : MarshalByRefObject, IComponent, IDisposable
    {
        //
        // 摘要:
        //     初始化 System.ComponentModel.Component 类的新实例。
        public Component();

        //
        // 摘要:
        //     在通过垃圾回收将 System.ComponentModel.Component 回收之前,释放非托管资源并执行其他清理操作。
        ~Component();

        //
        // 摘要:
        //     获取 System.ComponentModel.IContainer,它包含 System.ComponentModel.Component。
        //
        // 返回结果:
        //     包含 System.ComponentModel.Component 的 System.ComponentModel.IContainer(如果有),如果
        //     System.ComponentModel.Component 未封装在 System.ComponentModel.IContainer 中,则为 null。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public IContainer Container { get; }
        //
        // 摘要:
        //     获取或设置 System.ComponentModel.Component 的 System.ComponentModel.ISite。
        //
        // 返回结果:
        //     与 System.ComponentModel.Component 关联的 System.ComponentModel.ISite;如果 System.ComponentModel.Component
        //     未封装在 System.ComponentModel.IContainer 中,System.ComponentModel.Component 没有与其关联的
        //     System.ComponentModel.ISite 或者 System.ComponentModel.Component 已从其 System.ComponentModel.IContainer
        //     中移除,则为 null。
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public virtual ISite Site { get; set; }
        //
        // 摘要:
        //     获取一个指示组件是否可以引发事件的值。
        //
        //     提供的服务。
        //
        // 参数:
        //   service:
        //     由 System.ComponentModel.Component 提供的服务。
        //
        // 返回结果:
        //     表示由 System.ComponentModel.Component 提供的服务的 System.Object,如果 System.ComponentModel.Component
        //     不提供指定的服务,则为 null。
        protected virtual object GetService(Type service);
    }
}

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP