Partager via


VisualBasicExtensions.GetSpecialType(Compilation, SpecialType) Méthode

Définition

Obtient le symbole de type spécial dans la compilation actuelle.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::INamedTypeSymbol ^ GetSpecialType(Microsoft::CodeAnalysis::Compilation ^ compilation, Microsoft::CodeAnalysis::SpecialType typeId);
public static Microsoft.CodeAnalysis.INamedTypeSymbol GetSpecialType (this Microsoft.CodeAnalysis.Compilation compilation, Microsoft.CodeAnalysis.SpecialType typeId);
static member GetSpecialType : Microsoft.CodeAnalysis.Compilation * Microsoft.CodeAnalysis.SpecialType -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetSpecialType (compilation As Compilation, typeId As SpecialType) As INamedTypeSymbol

Paramètres

compilation
Compilation

Objet compilation source.

typeId
SpecialType

SpecialType à obtenir.

Retours

Un NamedTypeSymbol pour le type spécifié dans la compilation ; Null si la compilation est Null.

S’applique à