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 ...
随机推荐
- [CF1053C]Putting Boxes Together(线段树)
http://codeforces.com/blog/entry/62013 两个结论: 1.一定有一个箱子不用动. 2.不动的箱子一定是加权前缀和为S/2的那个. 1显然,2由1易得. 于是问题变为 ...
- 【递推】Codeforces Round #483 (Div. 2) [Thanks, Botan Investments and Victor Shaburov!] D. XOR-pyramid
题意:定义,对于a数组的一个子区间[l,r],f[l,r]定义为对该子区间执行f操作的值.显然,有f[l,r]=f[l,r-1] xor f[l+1,r].又定义ans[l,r]为满足l<=i& ...
- [IOI2007]Miners
[IOI2007]Miners 题目大意: 两个人吃东西,总共有\(3\)种食物,每个人每次吃到食物时可以获得的收益是当前食物和前两次吃的食物中,不同食物的种数.现在给定一个长度为\(n(n\le10 ...
- hdu 5316 Magician(2015多校第三场第1题)线段树单点更新+区间合并
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5316 题意:给你n个点,m个操作,每次操作有3个整数t,a,b,t表示操作类型,当t=1时讲a点的值改 ...
- hdu 4540 dp
题意: 假设: 1.每一个时刻我们只能打一只地鼠,并且打完以后该时刻出现的所有地鼠都会立刻消失: 2.老鼠出现的位置在一条直线上,如果上一个时刻我们在x1位置打地鼠,下一个时刻我们在x2位置打地鼠,那 ...
- bzoj 1069
最开始想到的是枚举3个点,另一个点用卡壳的思想,但实际上可以只枚举两个点(对角线上的两个点),其余两个点用卡壳. /****************************************** ...
- SnackDown Longest Increasing Subsequences 构造题
Longest Increasing Subsequences 题目连接: https://www.codechef.com/SNCKPA16/problems/MAKELIS Description ...
- Spring <context:annotation-config/> 解说(转)
在基于主机方式配置Spring的配置文件中,你可能会见到<context:annotation-config/>这样一条配置,他的作用是式地向 Spring 容器注册 AutowiredA ...
- Send custom commands to Mass Storage device
http://stackoverflow.com/questions/14363152/send-custom-commands-to-mass-storage-device I have devel ...
- GDB 自动化操作的技术-PYTHON
https://github.com/spacewander/debugger-utils http://python.jobbole.com/85415/ https://segmentfault. ...