Partilhar via


CSharpExtensions.GetSpeculativeAliasInfo Método

Definição

Associa o nome no contexto do local especificado e vê se ele é resolvido para um nome de alias. Se isso acontecer, retorne o AliasSymbol correspondente a ele. Caso contrário, retorne nulo.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::IAliasSymbol ^ GetSpeculativeAliasInfo(Microsoft::CodeAnalysis::SemanticModel ^ semanticModel, int position, Microsoft::CodeAnalysis::CSharp::Syntax::IdentifierNameSyntax ^ nameSyntax, Microsoft::CodeAnalysis::SpeculativeBindingOption bindingOption);
public static Microsoft.CodeAnalysis.IAliasSymbol GetSpeculativeAliasInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax nameSyntax, Microsoft.CodeAnalysis.SpeculativeBindingOption bindingOption);
public static Microsoft.CodeAnalysis.IAliasSymbol? GetSpeculativeAliasInfo (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, int position, Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax nameSyntax, Microsoft.CodeAnalysis.SpeculativeBindingOption bindingOption);
static member GetSpeculativeAliasInfo : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax * Microsoft.CodeAnalysis.SpeculativeBindingOption -> Microsoft.CodeAnalysis.IAliasSymbol
<Extension()>
Public Function GetSpeculativeAliasInfo (semanticModel As SemanticModel, position As Integer, nameSyntax As IdentifierNameSyntax, bindingOption As SpeculativeBindingOption) As IAliasSymbol

Parâmetros

semanticModel
SemanticModel
position
Int32
bindingOption
SpeculativeBindingOption

Retornos

Aplica-se a