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 命名空间