Project.GetCompilationAsync(CancellationToken) 方法

定义

Compilation异步获取此项目。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Compilation> GetCompilationAsync (System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Compilation?> GetCompilationAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetCompilationAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Compilation>
Public Function GetCompilationAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Compilation)

参数

cancellationToken
CancellationToken

返回

返回生成的Compilationnull返回SupportsCompilationfalse值。 如果多次调用,此函数将返回相同的值。

适用于