Project.TryGetCompilation(Compilation) 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.
Tries to get the cached Compilation for this project if it has already been created and is still cached. In almost all cases you should call GetCompilationAsync(CancellationToken) which will either return the cached Compilation or create a new one otherwise.
public:
bool TryGetCompilation([Runtime::InteropServices::Out] Microsoft::CodeAnalysis::Compilation ^ % compilation);
public bool TryGetCompilation (out Microsoft.CodeAnalysis.Compilation compilation);
public bool TryGetCompilation (out Microsoft.CodeAnalysis.Compilation? compilation);
member this.TryGetCompilation : Compilation -> bool
Public Function TryGetCompilation (ByRef compilation As Compilation) As Boolean
Parameters
- compilation
- Compilation
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.