#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. Winform 串口通讯之读卡器

    老板给我的第一个硬件就是一个读卡器, 说让我做一下试试,于是从网上查了查就写了出来,相当的简单. 但是后来还有一个地磅的串口通讯,我整整搞了一天. 在窗体类的构造函数中写入 Form.CheckFor ...

  2. java的反射机制(第二篇)

    本文转载自:http://c.biancheng.net/cpp/html/1781.html 要理解RTTI在Java中的工作原理,首先必须知道类型信息在运行时是如何表示的,这项工作是由“Class ...

  3. Windows Phone background Audio 后台音频

    Windows Phone 后台音频的确不是什么新鲜的话题了,但发现目前在WP平台的音频播放应用多多少少会有一些瑕疵,所以在此给大家在此介绍下这个功能给有需要的朋友们. 首先介绍下我们的应用在后台播放 ...

  4. js的继承实现方式

    1. 使用call或者apply来实现js对象继承 function Animal(age){ this.age = age; this.say = function(){ console.log(' ...

  5. 2016 UESTC Training for Data Structures 题解

    题解在下已经写过一次了,所以就不再写了,下面只有代码 题解下载(1):http://pan.baidu.com/s/1hsAUjMs 题解下载(2):http://pan.baidu.com/s/1m ...

  6. PAT甲级1127. ZigZagging on a Tree

    PAT甲级1127. ZigZagging on a Tree 题意: 假设二叉树中的所有键都是不同的正整数.一个唯一的二叉树可以通过给定的一对后序和顺序遍历序列来确定.这是一个简单的标准程序,可以按 ...

  7. git中如何合并某个指定文件?

    分支A_bracn和B_branch,只想将A_branch分支的某个文件f.txt合并到B_branch分支上.git checkout A_branch      git checkout --p ...

  8. Oracle DBA学习篇之SQL_TRACE

    SQL_TRACE ; ; set serveroutput on; alter session set sql_trace=true; select count(*) from firefox; a ...

  9. SQLiteSpy - A fast and compact GUI database manager for SQLite

    http://www.yunqa.de/delphi/doku.php/products/sqlitespy/index SQLiteSpy is a fast and compact GUI dat ...

  10. Leptonica在VS2010中的编译及简单使用举例

    在tesseract-ocr中会用到leptonica库.这里对leptonica简介下. Leptonica是一个开源的图像处理和图像分析库,它的license是BSD 2-clause.它主要包括 ...