EventBindingService 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
介面的預設實作 IEventBindingService 。
public ref class EventBindingService abstract : System::ComponentModel::Design::IEventBindingService
public abstract class EventBindingService : System.ComponentModel.Design.IEventBindingService
[System.Security.SecurityCritical]
public abstract class EventBindingService : System.ComponentModel.Design.IEventBindingService
type EventBindingService = class
interface IEventBindingService
[<System.Security.SecurityCritical>]
type EventBindingService = class
interface IEventBindingService
Public MustInherit Class EventBindingService
Implements IEventBindingService
- 繼承
-
EventBindingService
- 屬性
- 實作
備註
透過提供註冊元件事件處理程序的服務,提供了 EventBindingService 一種將事件處理器與設計程式程式碼中的元件事件連結的方式。
建構函式
| 名稱 | Description |
|---|---|
| EventBindingService(IServiceProvider) |
初始化 EventBindingService 類別的新執行個體。 |
方法
| 名稱 | Description |
|---|---|
| CreateUniqueMethodName(IComponent, EventDescriptor) |
建立唯一的方法名稱。 |
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| FreeMethod(IComponent, EventDescriptor, String) |
提供事件處理程序不再使用特定方法的通知。 |
| GetCompatibleMethods(EventDescriptor) |
回傳一組相容方法名稱。 |
| GetHashCode() |
做為預設哈希函式。 (繼承來源 Object) |
| GetService(Type) |
從服務提供者那裡取得所需服務。 |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ShowCode() |
顯示使用者程式碼。 |
| ShowCode(IComponent, EventDescriptor, String) |
顯示指定方法的使用者程式碼。 |
| ShowCode(Int32) |
在指定的行號處顯示使用者代碼。 |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |
| UseMethod(IComponent, EventDescriptor, String) |
提供事件處理程序正在使用特定方法的通知。 |
| ValidateMethodName(String) |
驗證所提供的方法名稱是否適用於所使用的語言或腳本。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IEventBindingService.CreateUniqueMethodName(IComponent, EventDescriptor) |
為指定的元件與事件建立事件處理方法的唯一名稱。 |
| IEventBindingService.GetCompatibleMethods(EventDescriptor) |
取得一組事件處理方法,這些方法簽名與指定事件相容。 |
| IEventBindingService.GetEvent(PropertyDescriptor) |
若該描述符代表事件,則獲得 EventDescriptor 該描述符所代表的事件。 |
| IEventBindingService.GetEventProperties(EventDescriptorCollection) |
將一組事件描述符轉換為一組屬性描述符。 |
| IEventBindingService.GetEventProperty(EventDescriptor) |
將單一事件描述符轉換為屬性描述符。 |
| IEventBindingService.ShowCode() |
顯示設計者的使用者程式碼。 |
| IEventBindingService.ShowCode(IComponent, EventDescriptor) |
顯示指定事件的使用者程式碼。 |
| IEventBindingService.ShowCode(Int32) |
在指定行顯示設計者的使用者程式碼。 |