Metodo ICodeInjectionService.AppendStatements

Aggiunge un insieme di istruzioni CodeDOM al gestore eventi specificato.

Spazio dei nomi:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Sintassi

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

Parametri

  • relativePosition
    Tipo: System.Int32
    Numero di riga in cui inserire le istruzioni.

Note

Il metodo non viene creato se non è già presente un relativo corpo.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ICodeInjectionService Interfaccia

Spazio dei nomi Microsoft.Windows.Design.Services