共用方式為


VisualBasicExtensions.GetAliasInfo 方法

定義

如果 「nameSyntax」 解析為別名名稱,則傳回對應至 A 的 AliasSymbol。否則傳回 null。

public static Microsoft.CodeAnalysis.IAliasSymbol GetAliasInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax nameSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetAliasInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IAliasSymbol
<Extension()>
Public Function GetAliasInfo (semanticModel As SemanticModel, nameSyntax As IdentifierNameSyntax, Optional cancellationToken As CancellationToken = Nothing) As IAliasSymbol

參數

semanticModel
SemanticModel
cancellationToken
CancellationToken

傳回

適用於