SingleLineIfStatementSyntax.Update Metodo

Definizione

Restituisce una copia di questo oggetto con le modifiche specificate. Restituisce questa istanza se non sono presenti modifiche effettive.

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineIfStatementSyntax ^ Update(Microsoft::CodeAnalysis::SyntaxToken ifKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::SyntaxToken thenKeyword, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineElseClauseSyntax ^ elseClause);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax Update (Microsoft.CodeAnalysis.SyntaxToken ifKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.SyntaxToken thenKeyword, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax elseClause);
member this.Update : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax
Public Function Update (ifKeyword As SyntaxToken, condition As ExpressionSyntax, thenKeyword As SyntaxToken, statements As SyntaxList(Of StatementSyntax), elseClause As SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax

Parametri

ifKeyword
SyntaxToken

Valore della proprietà IfKeyword.

condition
ExpressionSyntax

Valore della proprietà Condition.

thenKeyword
SyntaxToken

Valore per la proprietà ThenKeyword.

statements
SyntaxList<StatementSyntax>

Valore della proprietà Statements.

elseClause
SingleLineElseClauseSyntax

Valore della proprietà ElseClause.

Restituisce

Si applica a