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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.