ICodeInjectionService.AppendStatements 方法
將 CodeDOM 陳述式集合附加至指定的事件處理常式。
命名空間: Microsoft.Windows.Design.Services
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Sub AppendStatements ( _
method As CodeMemberMethod, _
statements As CodeStatementCollection, _
relativePosition As Integer _
)
void AppendStatements(
CodeMemberMethod method,
CodeStatementCollection statements,
int relativePosition
)
void AppendStatements(
CodeMemberMethod^ method,
CodeStatementCollection^ statements,
int relativePosition
)
abstract AppendStatements :
method:CodeMemberMethod *
statements:CodeStatementCollection *
relativePosition:int -> unit
function AppendStatements(
method : CodeMemberMethod,
statements : CodeStatementCollection,
relativePosition : int
)
參數
- method
型別:System.CodeDom.CodeMemberMethod
進行搜尋以附加陳述式至其中的方法定義。
- statements
型別:System.CodeDom.CodeStatementCollection
要附加至方法結尾的 CodeDOM 陳述式清單。
- relativePosition
型別:System.Int32
要插入陳述式的行號。
備註
如果方法主體不存在,則不會建立此方法。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。