LoginViewDesigner.Initialize メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > LoginViewDesigner.Initialize メソッドの意味・解説 

LoginViewDesigner.Initialize メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

関連付けられたコントロールデザイナ表示編集デザインできるように準備します

名前空間: System.Web.UI.Design.WebControls
アセンブリ: System.Design (system.design.dll 内)
構文構文

Public Overrides Sub Initialize
 ( _
    component As IComponent _
)
Dim instance As LoginViewDesigner
Dim component As IComponent

instance.Initialize(component)

パラメータ

component

IComponent を実装する LoginView。

例外例外
例外種類条件

ArgumentException

component は、LoginView 、または LoginView派生クラスではありません。

解説解説
使用例使用例

LoginViewDesigner クラスから継承したクラスInitialize メソッドオーバーライドすることにより、LoginView クラスから派生したコントロール外観デザイン時に変更するコード例次に示します。この例では、関連付けられたコントロールMyLoginView オブジェクトではない場合に、ArgumentException 例外スローます。

' Generate the design time markup.
Public Overrides Sub Initialize(ByVal
 component As IComponent)

    ' Ensure that only a MyLoginView can be created in this designer.
 
    If Not TypeOf component
 Is MyLoginView Then
        Throw New ArgumentException()
    End If

    ' Call the base method to generate the markup.
    MyBase.Initialize(component)

End Sub ' Initialize
public override void Initialize(IComponent
 component)
{
    // Ensure that only a MyLoginView can be created in this designer.
    if (!(component is MyLoginView))
        throw new ArgumentException();

    // Call the base method to generate the markup.
    base.Initialize(component);

} // Initialize
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
LoginViewDesigner クラス
LoginViewDesigner メンバ
System.Web.UI.Design.WebControls 名前空間
LoginView
IComponent
IControlDesignerView.ViewEvent イベント
ControlDesigner.Initialize
ComponentDesigner.Initialize



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

LoginViewDesigner.Initialize メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



LoginViewDesigner.Initialize メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS