VisualBasicCompilation.WithReferences 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
WithReferences(MetadataReference[]) | |
WithReferences(IEnumerable<MetadataReference>) |
Creates a new compilation with the specified references. |
WithReferences(MetadataReference[])
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
public:
Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilation ^ WithReferences(... cli::array <Microsoft::CodeAnalysis::MetadataReference ^> ^ newReferences);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation WithReferences (params Microsoft.CodeAnalysis.MetadataReference[] newReferences);
override this.WithReferences : Microsoft.CodeAnalysis.MetadataReference[] -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation
Public Function WithReferences (ParamArray newReferences As MetadataReference()) As VisualBasicCompilation
Parameters
- newReferences
- MetadataReference[]
Returns
Applies to
WithReferences(IEnumerable<MetadataReference>)
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
- Source:
- VisualBasicCompilation.vb
Creates a new compilation with the specified references.
public:
Microsoft::CodeAnalysis::VisualBasic::VisualBasicCompilation ^ WithReferences(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::MetadataReference ^> ^ newReferences);
public Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation WithReferences (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference> newReferences);
override this.WithReferences : seq<Microsoft.CodeAnalysis.MetadataReference> -> Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation
Public Function WithReferences (newReferences As IEnumerable(Of MetadataReference)) As VisualBasicCompilation
Parameters
- newReferences
- IEnumerable<MetadataReference>
Returns
Remarks
The new VisualBasicCompilation will query the given MetadataReference for the underlying metadata as soon as the are needed.
The New compilation uses whatever metadata is currently being provided by the MetadataReference. E.g. if the current compilation references a metadata file that has changed since the creation of the compilation the New compilation is going to use the updated version, while the current compilation will be using the previous (it doesn't change).