Share via


Project.TryGetCompilation(Compilation) Method

Definition

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