共用方式為


EventBindingService.AppendStatements 方法

將指定的 CodeStatement 物件集合附加至指定的事件處理常式。

命名空間:  Microsoft.Windows.Design.Services
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public MustOverride Sub AppendStatements ( _
    modelEvent As ModelEvent, _
    methodName As String, _
    statements As CodeStatementCollection _
)
public abstract void AppendStatements(
    ModelEvent modelEvent,
    string methodName,
    CodeStatementCollection statements
)
public:
virtual void AppendStatements(
    ModelEvent^ modelEvent, 
    String^ methodName, 
    CodeStatementCollection^ statements
) abstract
abstract AppendStatements : 
        modelEvent:ModelEvent * 
        methodName:string * 
        statements:CodeStatementCollection -> unit 
public abstract function AppendStatements(
    modelEvent : ModelEvent, 
    methodName : String, 
    statements : CodeStatementCollection
)

參數

  • methodName
    型別:System.String
    事件處理常式的方法名稱。

.NET Framework 安全性

請參閱

參考

EventBindingService 類別

Microsoft.Windows.Design.Services 命名空間

其他資源

WPF 設計工具擴充性架構