System.ComponentModel.Component : MarshalByRefObject, IComponent, IDisposable
#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的更多相关文章
- HttpApplication IHttpAsyncHandler, IHttpHandler, IComponent, IDisposable ps url System.Web.dll
// 摘要: // 定义 ASP.NET 应用程序中的所有应用程序对象共有的方法.属性和事件.此类是用户在 Global.asax 文件中所定义的应用程序的基类. [Toolb ...
- C# 特性 System.ComponentModel 命名空间属性方法大全,System.ComponentModel 命名空间的特性
目录: System.ComponentModel 特性命名空间与常用类 System.ComponentModel.DataAnnotations ComponentModel - Classes ...
- 异常详细信息: System.ComponentModel.Win32Exception: 拒绝访问。
本地win7 本地正常,服务器win2008r2,服务器报错! 异常详细信息: System.ComponentModel.Win32Exception: 拒绝访问. 拒绝访问. 说明: 执行当前 W ...
- 对System.ComponentModel.DataAnnotations 的学习应用
摘要 你还在为了验证一个Class对象中很多数据的有效性而写很多If条件判断吗?我也同样遇到这种问题,不过,最近学了一项新的方法,让我不在写很多if条件做判断,通过给属性标注特性来验证数据规则,从此再 ...
- WPF 类型“System.ComponentModel.ISupportInitialize”在未被引用的程序集中定义。
问题:类型“System.ComponentModel.ISupportInitialize”在未被引用的程序集中定义.必须添加对程序集“System, Version=4.0.0.0, Cultur ...
- 【Winform】 无法将类型为“System.Windows.Forms.SplitContainer”的对象强制转换为类型“System.ComponentModel.ISupportInitialize”。
问题:将dotnet framework 4.0 切换到2.0时,编译没有问题,在运行时出现如下错误:System.InvalidCastException: 无法将类型为“System.Window ...
- 在运行时切换 WinForm 程序的界面语言 System.ComponentModel.ComponentResourceManager .ApplyResources
Download the code for this article: WinForm-Multilanguages-2.rar (11 KB). 方法二: 下面介绍一种只需对现有代码做较小改动的方法 ...
- windows服务安装(System.ComponentModel.Win32Exception:远程过程调用失败)
“安装”阶段发生异常.System.ComponentModel.Win32Exception:远程过程调用失败 附上提示信息C:\Windows\Microsoft.NET\Framework\v4 ...
- System.ComponentModel.BackgroundWorker在WinForm中的异步使用
为了防止操作过程中界面卡死,和WinForm搭配最适合的就是BackgroundWorker了.BackgroundWorker 类 using System; using System.Compon ...
随机推荐
- QQ怎么 发送 已经录好的视频
韩梦飞沙 韩亚飞 313134555@qq.com yue31313 han_meng_fei_sha QQ发送 已经录好的视频 直接放过去,对方是需要下载的. 只有通过QQ录制的,才是直接就 ...
- SQLSERVER——查看阻塞信息(sp_who_lock优化无误版)
经常会需要分析SQLSERVER的阻塞情况,尤其是某些SQL操作异常缓慢从而怀疑是有人在搞事情的情况下.网上有许多一模一样的帖子,是关于sp_who_lock这个存储过程的,然而,网上流传的这个是略有 ...
- Java 中的浮点数取精度方法
Java 中的浮点数取精度方法 一.内容 一般在Java代码中取一个double类型的浮点数的精度,四舍五入或者直接舍去等的方式,使用了4种方法,推荐使用第一种,我已经封装成工具类了. 二.代码实现 ...
- luoguP2303 [SDOI2012]Longge的问题 化式子
求\(\sum \limits_{i = 1}^n gcd(i, n)\) \(\sum \limits_{i = 1}^n gcd(i, n)\) \(=\sum \limits_{i = 1}^n ...
- bzoj 3473 后缀自动机多字符串的子串处理方法
后缀自动机处理多字符串字串相关问题. 首先,和后缀数组一样,用分割符连接各字符串,然后建一个后缀自动机. 我们定义一个节点代表的字符串为它原本代表的所有串去除包含分割符后的串.每个节点代表的字符串的数 ...
- Sql server 存储过程基础语法
一.定义变量 --简单赋值 declare @a int print @a --使用select语句赋值 declare @user1 nvarchar() select @user1='张三' pr ...
- WIKIOI 1026 逃跑的拉尔夫 深度优先搜索
/* 1026 逃跑的拉尔夫 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题目描述 Description 年轻的拉尔夫开玩笑地从一个小镇上偷走了一辆 ...
- Python学习笔记(三):随机生成函数方法
本文是在Python2下总结! Python中的random模块用于生成随机数,如果想生成随机数需要先导入random的模块然后才能使用其中的方法,下面简单介绍一下常用的结果函数方法: 1·.rand ...
- SMB协议概述
一.概述 SMB(Server Message Block)是由微软开发的一种软件程序级的网络传输协议,主要用来使得一个网络上的计算机共享计文件.打印机.串行端口和通讯等资源.它也提供认证的进行进程间 ...
- VS2010下配置Winpcap 开发环境
http://blog.csdn.net/taotaoyouarebaby/article/details/27326829