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 ...
随机推荐
- C# 复制、粘贴文本信息到系统剪贴板
复制: Clipboard.SetDataObject(textBox1.SelectedText); 粘贴: IDataObject iData = Clipboard.GetDataObject( ...
- Power OJ 2605 SPFA+dp思想
题目链接[https://www.oj.swust.edu.cn/problem/show/2605] 题意:给出包含N(N <= 5000)个点M条边的有向图,然后求1 - N在满足距离小于T ...
- VC被控制时关闭极域电子教室、破解联想硬盘保护系统密码(上)
<[原]关于VC运行时关闭极域电子教室的改进方法> 本文将讲资料和方法,具体实现和破解联想硬盘保护系统密码在(下)中,有关破解联想硬盘保护系统(删除它)的方法很简单,用硬盘保护卡克星就可以 ...
- bzoj 2460 拟阵+判线性相关
/************************************************************** Problem: 2460 User: idy002 Language: ...
- linux基础环境部署
Content 0.序 1.更新安装库 2.安装基础库 0.序 本文主要是记录php在 Centos下的安装配置 .文中如无特别说明.表示php-5.6.31代码目录. 1.更新安装库 $ yum u ...
- ThinkPHP中RBAC权限管理的简单应用
RBAC英文全称(Role-Based Access Controller)即基于角色的权限访问控制,简单来讲,一个用户可以拥有若干角色,每一个角色拥有若干权限.这样,就构造成“用户-角色-权限”的授 ...
- android 内部存储 安装apk
在做应用自动更新模块下载apk时遇到了内部存储和sd卡存储两种情况,存在sk卡中存储apk可以正常安装,可是在内部存储中安装apk时出现了parse error的问题. 在网上搜了搜,大致分为两种方案 ...
- How to exit the entire application from a Python thread?
If all your threads except the main ones are daemons, the best approach is generally thread.interrup ...
- 基于springboot的spring JSR validation 后台参数验证
springboot集成JSR参数校验: 1. 导入maven <dependency> <groupId>org.springframework.boot</group ...
- 如何使用C#关键字const,readonly,static
如果有一个值不太会变化,我们经常使用const和readonly,这2者有何不同呢?有时候,我们也会在readonly之前加上关键字static,这又意味着什么呢? const ● const默认是静 ...