EventBindingService 類別

定義

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 提供方法可從設計工具程式代碼將事件處理程式與元件事件連結。

建構函式

EventBindingService(IServiceProvider)

初始化 EventBindingService 類別的新執行個體。

方法

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)

驗證提供的方法名稱是否對正在使用的語言或指令碼有效。

明確介面實作

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)

在指定行中顯示設計工具的使用者程式碼。

適用於

另請參閱