Compilation.ReplaceSyntaxTree(SyntaxTree, SyntaxTree) 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.
Crée une nouvelle compilation avec une ancienne arborescence de syntaxe remplacée par une nouvelle arborescence de syntaxe. Réutilise les métadonnées de l’ancien objet de compilation.
public:
Microsoft::CodeAnalysis::Compilation ^ ReplaceSyntaxTree(Microsoft::CodeAnalysis::SyntaxTree ^ oldTree, Microsoft::CodeAnalysis::SyntaxTree ^ newTree);
public Microsoft.CodeAnalysis.Compilation ReplaceSyntaxTree(Microsoft.CodeAnalysis.SyntaxTree oldTree, Microsoft.CodeAnalysis.SyntaxTree newTree);
member this.ReplaceSyntaxTree : Microsoft.CodeAnalysis.SyntaxTree * Microsoft.CodeAnalysis.SyntaxTree -> Microsoft.CodeAnalysis.Compilation
Public Function ReplaceSyntaxTree (oldTree As SyntaxTree, newTree As SyntaxTree) As Compilation
Paramètres
- oldTree
- SyntaxTree
L’ancien arbre.
- newTree
- SyntaxTree
Nouvelle arborescence.
Retours
Nouvelle compilation.