VisualBasicCompilationOptions.WithGlobalImports Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithGlobalImports(GlobalImport[]) |
Creates a new VisualBasicCompilationOptions instance with a different global imports specified. |
WithGlobalImports(IEnumerable<GlobalImport>) |
Creates a new VisualBasicCompilationOptions instance with a different global imports specified. |
WithGlobalImports(ImmutableArray<GlobalImport>) |
Creates a new VisualBasicCompilationOptions instance with a different global imports specified. |
WithGlobalImports(GlobalImport[])
Creates a new VisualBasicCompilationOptions instance with a different global imports specified.
public:
Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilationOptions ^ WithGlobalImports(... cli::array <Microsoft::CodeAnalysis::VisualBasic::GlobalImport ^> ^ globalImports);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions WithGlobalImports (params Microsoft.CodeAnalysis.VisualBasic.GlobalImport[] globalImports);
member this.WithGlobalImports : Microsoft.CodeAnalysis.VisualBasic.GlobalImport[] -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions
Public Function WithGlobalImports (ParamArray globalImports As GlobalImport()) As VisualBasicCompilationOptions
Parameters
- globalImports
- GlobalImport[]
A collection of Global Imports GlobalImport.
Returns
A new instance of VisualBasicCompilationOptions.
Applies to
WithGlobalImports(IEnumerable<GlobalImport>)
Creates a new VisualBasicCompilationOptions instance with a different global imports specified.
public:
Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilationOptions ^ WithGlobalImports(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::VisualBasic::GlobalImport ^> ^ globalImports);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions WithGlobalImports (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.VisualBasic.GlobalImport> globalImports);
member this.WithGlobalImports : seq<Microsoft.CodeAnalysis.VisualBasic.GlobalImport> -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions
Public Function WithGlobalImports (globalImports As IEnumerable(Of GlobalImport)) As VisualBasicCompilationOptions
Parameters
- globalImports
- IEnumerable<GlobalImport>
A collection of Global Imports GlobalImport.
Returns
A new instance of VisualBasicCompilationOptions.
Applies to
WithGlobalImports(ImmutableArray<GlobalImport>)
Creates a new VisualBasicCompilationOptions instance with a different global imports specified.
public:
Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilationOptions ^ WithGlobalImports(System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::VisualBasic::GlobalImport ^> globalImports);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions WithGlobalImports (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.VisualBasic.GlobalImport> globalImports);
member this.WithGlobalImports : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.VisualBasic.GlobalImport> -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilationOptions
Public Function WithGlobalImports (globalImports As ImmutableArray(Of GlobalImport)) As VisualBasicCompilationOptions
Parameters
- globalImports
- ImmutableArray<GlobalImport>
A collection of Global Imports GlobalImport.
Returns
A new instance of VisualBasicCompilationOptions.