將指定的 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 命名空間