ModelExtensions.GetTypeInfo 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 des informations de type sur un nœud de syntaxe.
public static Microsoft.CodeAnalysis.TypeInfo GetTypeInfo(this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default);
static member GetTypeInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.SyntaxNode * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.TypeInfo
<Extension()>
Public Function GetTypeInfo (semanticModel As SemanticModel, node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As TypeInfo
Paramètres
- semanticModel
- SemanticModel
- node
- SyntaxNode
Nœud de syntaxe pour lequel obtenir des informations sémantiques.
- cancellationToken
- CancellationToken
Jeton d’annulation qui peut être utilisé pour annuler le processus d’obtention des informations sémantiques.