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
)
参数
- modelEvent
类型:Microsoft.Windows.Design.Model.ModelEvent
其处理程序将添加语句的事件定义。
- methodName
类型:System.String
事件处理程序的方法名称。
- statements
类型:System.CodeDom.CodeStatementCollection
要追加的 CodeStatement 对象的集合。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Services 命名空间