#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; }
//
// 摘要:
// 获取一个指示组件是否可以引发事件的值。
//
// 返回结果:
// 如果组件可以引发事件,则为 true;否则为 false。默认为 true。
protected virtual bool CanRaiseEvents { get; }
//
// 摘要:
// 获取一个值,用以指示 System.ComponentModel.Component 当前是否处于设计模式。
//
// 返回结果:
// 如果 System.ComponentModel.Component 处于设计模式,则为 true;否则为 false。
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
protected bool DesignMode { get; }
//
// 摘要:
// 获取附加到此 System.ComponentModel.Component 的事件处理程序的列表。
//
// 返回结果:
// 一个 System.ComponentModel.EventHandlerList,它提供此组件的委托。
protected EventHandlerList Events { get; } //
// 摘要:
// 当通过调用 System.ComponentModel.Component.Dispose 方法释放组件时发生。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public event EventHandler Disposed; //
// 摘要:
// 释放由 System.ComponentModel.Component 使用的所有资源。
public void Dispose();
//
// 摘要:
// 返回包含 System.ComponentModel.Component 的名称的 System.String(如果有)。不应重写此方法。
//
// 返回结果:
// 包含 System.ComponentModel.Component 的名称的 System.String(如果有);如果 System.ComponentModel.Component
// 未命名,则为 null。
public override string ToString();
//
// 摘要:
// 释放由 System.ComponentModel.Component 占用的非托管资源,还可以另外再释放托管资源。
//
// 参数:
// disposing:
// 为 true 则释放托管资源和非托管资源;为 false 则仅释放非托管资源。
protected virtual void Dispose(bool disposing);
//
// 摘要:
// 返回一个对象,该对象表示由 System.ComponentModel.Component 或它的 System.ComponentModel.Container
// 提供的服务。
//
// 参数:
// service:
// 由 System.ComponentModel.Component 提供的服务。
//
// 返回结果:
// 表示由 System.ComponentModel.Component 提供的服务的 System.Object,如果 System.ComponentModel.Component
// 不提供指定的服务,则为 null。
protected virtual object GetService(Type service);
}
}

System.ComponentModel.Component : MarshalByRefObject, IComponent, IDisposable的更多相关文章

  1. HttpApplication IHttpAsyncHandler, IHttpHandler, IComponent, IDisposable ps url System.Web.dll

    // 摘要:     //     定义 ASP.NET 应用程序中的所有应用程序对象共有的方法.属性和事件.此类是用户在 Global.asax 文件中所定义的应用程序的基类.     [Toolb ...

  2. C# 特性 System.ComponentModel 命名空间属性方法大全,System.ComponentModel 命名空间的特性

    目录: System.ComponentModel 特性命名空间与常用类 System.ComponentModel.DataAnnotations ComponentModel - Classes ...

  3. 异常详细信息: System.ComponentModel.Win32Exception: 拒绝访问。

    本地win7 本地正常,服务器win2008r2,服务器报错! 异常详细信息: System.ComponentModel.Win32Exception: 拒绝访问. 拒绝访问. 说明: 执行当前 W ...

  4. 对System.ComponentModel.DataAnnotations 的学习应用

    摘要 你还在为了验证一个Class对象中很多数据的有效性而写很多If条件判断吗?我也同样遇到这种问题,不过,最近学了一项新的方法,让我不在写很多if条件做判断,通过给属性标注特性来验证数据规则,从此再 ...

  5. WPF 类型“System.ComponentModel.ISupportInitialize”在未被引用的程序集中定义。

    问题:类型“System.ComponentModel.ISupportInitialize”在未被引用的程序集中定义.必须添加对程序集“System, Version=4.0.0.0, Cultur ...

  6. 【Winform】 无法将类型为“System.Windows.Forms.SplitContainer”的对象强制转换为类型“System.ComponentModel.ISupportInitialize”。

    问题:将dotnet framework 4.0 切换到2.0时,编译没有问题,在运行时出现如下错误:System.InvalidCastException: 无法将类型为“System.Window ...

  7. 在运行时切换 WinForm 程序的界面语言 System.ComponentModel.ComponentResourceManager .ApplyResources

    Download the code for this article: WinForm-Multilanguages-2.rar (11 KB). 方法二: 下面介绍一种只需对现有代码做较小改动的方法 ...

  8. windows服务安装(System.ComponentModel.Win32Exception:远程过程调用失败)

    “安装”阶段发生异常.System.ComponentModel.Win32Exception:远程过程调用失败 附上提示信息C:\Windows\Microsoft.NET\Framework\v4 ...

  9. System.ComponentModel.BackgroundWorker在WinForm中的异步使用

    为了防止操作过程中界面卡死,和WinForm搭配最适合的就是BackgroundWorker了.BackgroundWorker 类 using System; using System.Compon ...

随机推荐

  1. centOS7 apache ssl证书安装配置

    背景说明:服务器是centOS7.4 七牛申请的免费ssl证书 默认apache是没有安装SSL模块的,所以需要安装,接着使用命令: yum install -y mod_ssl apache目录 / ...

  2. wpf企业应用之数据校验

    wpf中使用IDataErrorInfo实现数据校验,绑定实体需要实现了此接口,并在UI绑定表达式中添加ValidatesOnDataErrors=True,这样数据校验发生时,wpf会调用该接口中的 ...

  3. Linux提权exp大全

    如下表 #CVE #Description #Kernels CVE-2017-1000367 [Sudo] (Sudo 1.8.6p7 - 1.8.20) CVE-2017-7494 [Samba ...

  4. SGU 405 Totalizator

    405. Totalizator Time limit per test: 0.25 second(s)Memory limit: 65536 kilobytes input: standardout ...

  5. OPENCV----在APP性能测试中的应用(一)

    应用项目:  APP的性能测试 应用场景:  APP启动速度  视频开播速度 加载速度  等~~ 缘来:  基于APP日志和UiAutomator的测试方案,测试结果不能直白且精确的反应,用户的体验 ...

  6. jQuery中的观察者模式(Observer Pattern)

    在jQuery中,on方法可以为元素绑定事件,trigger方法可以手动触发事件,围绕这2个方法,我们来体验jQuery中的观察者模式(Observer Pattern). ■ on方法绑定内置事件, ...

  7. Spring MVC的异步模式DefferedResult

    原文:http://www.importnew.com/21051.html 什么是异步模式 要知道什么是异步模式,就先要知道什么是同步模式,先看最典型的同步模式: (图1) 浏览器发起请求,Web服 ...

  8. 求好用的在线手册编写工具,能编写像bootstrap在线Doc那种的,想为OpenCenter写个在线手册

    原文地址:http://www.oschina.net/question/1014458_225711 各位OSCer的开源项目的在线说明文档都是用什么写的呢? 类似 http://v3.bootcs ...

  9. Selenium2+python自动化35-获取元素属性

    前言 通常在做断言之前,都要先获取界面上元素的属性,然后与期望结果对比.本篇介绍几种常见的获取元素属性方法. 一.获取页面title 1.有很多小伙伴都不知道title长在哪里,看下图左上角. 2.获 ...

  10. Kali Linux下安装配置ProFTPD实例

    1.安装ProFTPD 在ftp://ftp.proftpd.org/下能够找到官方公布的各个ProFTPD版本号,本人使用ftp://ftp.proftpd.org/historic/source/ ...