共用方式為


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
)

參數

  • relativePosition
    型別:System.Int32
    要插入陳述式的行號。

備註

如果方法主體不存在,則不會建立此方法。

.NET Framework 安全性

請參閱

參考

ICodeInjectionService 介面

Microsoft.Windows.Design.Services 命名空間