Component クラス
アセンブリ: System (system.dll 内)

<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _ <ComVisibleAttribute(True)> _ Public Class Component Inherits MarshalByRefObject Implements IComponent, IDisposable
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] [ComVisibleAttribute(true)] public class Component : MarshalByRefObject, IComponent, IDisposable
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] [ComVisibleAttribute(true)] public ref class Component : public MarshalByRefObject, IComponent, IDisposable

Component は、参照渡しでマーシャリングを行う共通言語ランタイムのすべてのコンポーネントの基本クラスです。Component はリモート処理可能で、MarshalByRefObject クラスから派生します。Component には、IComponent インターフェイスの実装が用意されています。MarshalByValueComponent には、値渡しでマーシャリングを行う IComponent の実装が用意されています。
IContainer インターフェイスを実装している任意のオブジェクトに Component をホストし、そのコンテナからサービスを照会および取得できます。コンテナは、格納している Component ごとに ISite を作成します。コンテナは、サイトを使用して Component を管理し、コンテナと通信するために Component によって使用されます。
Component では、Finalize メソッドの暗黙的な呼び出しによる自動メモリ管理を待たずに、Dispose メソッドを呼び出して明示的にリソースを解放する必要があります。Container が破棄された場合は、Container 内のすべてのコンポーネントも破棄されます。



Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Component クラスのページへのリンク