DesignSurface.CreateComponent メソッド
アセンブリ: System.Design (system.design.dll 内)

<ObsoleteAttribute("CreateComponent has been replaced by CreateInstance and will be removed after Beta2")> _ Protected Friend Overridable Function CreateComponent ( _ componentType As Type _ ) As IComponent
Dim componentType As Type Dim returnValue As IComponent returnValue = Me.CreateComponent(componentType)
[ObsoleteAttribute("CreateComponent has been replaced by CreateInstance and will be removed after Beta2")] protected internal virtual IComponent CreateComponent ( Type componentType )
[ObsoleteAttribute(L"CreateComponent has been replaced by CreateInstance and will be removed after Beta2")] protected public: virtual IComponent^ CreateComponent ( Type^ componentType )
/** @attribute ObsoleteAttribute("CreateComponent has been replaced by CreateInstance and will be removed after Beta2") */ protected IComponent CreateComponent ( Type componentType )
ObsoleteAttribute("CreateComponent has been replaced by CreateInstance and will be removed after Beta2") protected internal function CreateComponent ( componentType : Type ) : IComponent
戻り値
新規作成したコンポーネント。

例外の種類 | 条件 |
---|---|
ArgumentNullException | componentType が null 参照 (Visual Basic では Nothing) です。 |
ObjectDisposedException |

CreateComponent メソッドは、デザイン サーフェイスの CreateComponent メソッドによって呼び出され、コンポーネントのインスタンスを作成します。コンポーネントは、デザイン サーフェイスで作成し、パブリック コンテナに追加する必要があります。


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


Weblioに収録されているすべての辞書からDesignSurface.CreateComponent メソッドを検索する場合は、下記のリンクをクリックしてください。

- DesignSurface.CreateComponent メソッドのページへのリンク