EventBuilder 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義類別的事件。
public ref class EventBuilder abstract
public ref class EventBuilder sealed
public ref class EventBuilder sealed : System::Runtime::InteropServices::_EventBuilder
public abstract class EventBuilder
public sealed class EventBuilder
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public sealed class EventBuilder : System.Runtime.InteropServices._EventBuilder
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class EventBuilder : System.Runtime.InteropServices._EventBuilder
type EventBuilder = class
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type EventBuilder = class
interface _EventBuilder
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type EventBuilder = class
interface _EventBuilder
Public MustInherit Class EventBuilder
Public NotInheritable Class EventBuilder
Public NotInheritable Class EventBuilder
Implements _EventBuilder
- 繼承
-
EventBuilder
- 屬性
- 實作
EventBuilder
一律與TypeBuilder
相關聯。 TypeBuilder.DefineEvent 方法會將新的 EventBuilder
傳回給用戶端。
Event |
初始化 EventBuilder 類別的新執行個體。 |
Add |
加入一個與這個事件相關聯的「其他」方法。 「其他」方法是指除了「on」和「raise」方法之外,與這個事件關聯的方法。 您可呼叫這個函式許多次,視需要加入許多「其他」方法。 |
Add |
在衍生類別中覆寫時,新增其中一個與此事件相關聯的「其他」方法。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get |
傳回這個事件的語彙基元 (Token)。 |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
Set |
設定用來訂閱這個事件的方法。 |
Set |
在衍生類別中覆寫時,設定用來訂閱此事件的方法。 |
Set |
使用指定的自訂屬性 Blob 來設定自訂屬性。 |
Set |
使用自訂屬性產生器來設定自訂屬性。 |
Set |
在衍生類別中覆寫時,在此元件上設定自定義屬性。 |
Set |
設定用來引發這個事件的方法。 |
Set |
在衍生類別中覆寫時,設定用來引發這個事件的方法。 |
Set |
設定用來取消訂閱這個事件的方法。 |
Set |
在衍生類別中覆寫時,設定用來取消訂閱此事件的方法。 |
To |
傳回代表目前物件的字串。 (繼承來源 Object) |
_Event |
將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 |
_Event |
擷取物件的類型資訊,可以用來取得介面的類型資訊。 |
_Event |
擷取物件提供的類型資訊介面數目 (0 或 1)。 |
_Event |
提供物件所公開的屬性和方法的存取權。 |
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |