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
- method
Type: System.CodeDom.CodeMemberMethod
The method definition that is searched to append statements to.
- statements
Type: System.CodeDom.CodeStatementCollection
A list of CodeDOM statements to append to the end of the method.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.