SingleLineIfStatementSyntax.WithThenKeyword(SyntaxToken) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne une copie de ce code avec la propriété ThenKeyword modifiée en valeur spécifiée. Retourne cette instance si la valeur spécifiée est identique à la valeur actuelle.
public:
Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineIfStatementSyntax ^ WithThenKeyword(Microsoft::CodeAnalysis::SyntaxToken thenKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax WithThenKeyword(Microsoft.CodeAnalysis.SyntaxToken thenKeyword);
member this.WithThenKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax
Public Function WithThenKeyword (thenKeyword As SyntaxToken) As SingleLineIfStatementSyntax
Paramètres
- thenKeyword
- SyntaxToken