Udostępnij za pośrednictwem


ICodeInjectionService.AppendStatements Method

Appends a collection of CodeDOM statements to the specified event handler.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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
)

Parameters

  • relativePosition
    Type: System.Int32
    The line number to insert the statements.

Remarks

The method is not created if a method body does not already exist.

.NET Framework Security

See Also

Reference

ICodeInjectionService Interface

Microsoft.Windows.Design.Services Namespace