Document.TryGetSemanticModel(SemanticModel) 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.
Obtient le modèle sémantique actuel pour ce document si le modèle est déjà calculé et toujours mis en cache. Dans presque tous les cas, vous devez appeler GetSemanticModelAsync(CancellationToken), ce qui calcule le modèle sémantique si nécessaire.
public:
bool TryGetSemanticModel([Runtime::InteropServices::Out] Microsoft::CodeAnalysis::SemanticModel ^ % semanticModel);
public bool TryGetSemanticModel(out Microsoft.CodeAnalysis.SemanticModel semanticModel);
public bool TryGetSemanticModel(out Microsoft.CodeAnalysis.SemanticModel? semanticModel);
member this.TryGetSemanticModel : SemanticModel -> bool
Public Function TryGetSemanticModel (ByRef semanticModel As SemanticModel) As Boolean
Paramètres
- semanticModel
- SemanticModel