Click or drag to resize

CompilationGetDiagnostics Method

Gets all the diagnostics for the compilation, including syntax, declaration, and binding. Does not include any diagnostics that might be produced during emit, see EmitResult.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public abstract ImmutableArray<Diagnostic> GetDiagnostics(
	CancellationToken cancellationToken = null


cancellationToken (Optional)
Type: System.ThreadingCancellationToken

Return Value

Type: ImmutableArrayDiagnostic
See Also