Click or drag to resize

VisualBasicExtensionsGetAliasInfo Method

If "nameSyntax" resolves to an alias name, return the AliasSymbol corresponding to A. Otherwise return null.

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public static IAliasSymbol GetAliasInfo(
	this SemanticModel semanticModel,
	IdentifierNameSyntax nameSyntax,
	CancellationToken cancellationToken = null


Type: Microsoft.CodeAnalysisSemanticModel
Type: Microsoft.CodeAnalysis.VisualBasic.SyntaxIdentifierNameSyntax
cancellationToken (Optional)
Type: System.ThreadingCancellationToken

Return Value

Type: IAliasSymbol

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SemanticModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also