Click or drag to resize

VisualBasicExtensionsAliasImports Method



Gets the compilation AliasImports property.

Namespace:  Microsoft.CodeAnalysis.VisualBasic
Assembly:  Microsoft.CodeAnalysis.VisualBasic (in Microsoft.CodeAnalysis.VisualBasic.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public static ImmutableArray<IAliasSymbol> AliasImports(
	this Compilation compilation
)

Parameters

compilation
Type: Microsoft.CodeAnalysisCompilation
A source Compilation object.

Return Value

Type: ImmutableArrayIAliasSymbol
An ImmutableArray of AliasSymbol, from the compilation instance AliasImports property; otherwise an empty ImmutableArray if compilation instance is Null.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Compilation. 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