CodeEventReferenceExpression クラスとは? わかりやすく解説

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

CodeEventReferenceExpression クラス

イベントへの参照表します

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
Public Class CodeEventReferenceExpression
    Inherits CodeExpression
Dim instance As CodeEventReferenceExpression
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
public class CodeEventReferenceExpression :
 CodeExpression
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
public ref class CodeEventReferenceExpression
 : public CodeExpression
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
public class CodeEventReferenceExpression extends
 CodeExpression
SerializableAttribute 
ComVisibleAttribute(true) 
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
public class CodeEventReferenceExpression extends
 CodeExpression
解説解説

CodeEventReferenceExpression使用してイベントへの参照を表すことができます

TargetObject プロパティは、イベント格納しているオブジェクト指定します。EventName プロパティは、イベントの名前を指定します

使用例使用例

CodeEventReferenceExpression使用して TestEvent という名前のイベント参照する例を次に示します

' Represents a reference to an event.
Dim eventRef1 As New CodeEventReferenceExpression(New
 CodeThisReferenceExpression(), "TestEvent")

' A Visual Basic code generator produces the following source code for
 the preceeding example code:

'       Me.TestEvent
// Represents a reference to an event.
CodeEventReferenceExpression eventRef1 = new CodeEventReferenceExpression(
 new CodeThisReferenceExpression(), "TestEvent" );

// A C# code generator produces the following source code for the preceeding
 example code:

//        this.TestEvent
// Represents a reference to an event.
CodeEventReferenceExpression^ eventRef1 = gcnew CodeEventReferenceExpression( gcnew
 CodeThisReferenceExpression,"TestEvent" );

// A C# code generator produces the following source code for the preceeding
 example code:
//        this.TestEvent
// Represents a reference to an event.
CodeEventReferenceExpression eventRef1 = new 
    CodeEventReferenceExpression(new CodeThisReferenceExpression()
,
    "TestEvent");
// A VJ# code generator produces the following source code for the
// preceeding example code:
// this.TestEvent
継承階層継承階層
System.Object
   System.CodeDom.CodeObject
     System.CodeDom.CodeExpression
      System.CodeDom.CodeEventReferenceExpression
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からCodeEventReferenceExpression クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCodeEventReferenceExpression クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCodeEventReferenceExpression クラス を検索

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

辞書ショートカット

すべての辞書の索引

「CodeEventReferenceExpression クラス」の関連用語

CodeEventReferenceExpression クラスのお隣キーワード
検索ランキング

   

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



CodeEventReferenceExpression クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS