共用方式為


Solution.GetSourceGeneratedDocumentAsync 方法

定義

public System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.SourceGeneratedDocument?> GetSourceGeneratedDocumentAsync (Microsoft.CodeAnalysis.DocumentId documentId, System.Threading.CancellationToken cancellationToken);
member this.GetSourceGeneratedDocumentAsync : Microsoft.CodeAnalysis.DocumentId * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.SourceGeneratedDocument>
Public Function GetSourceGeneratedDocumentAsync (documentId As DocumentId, cancellationToken As CancellationToken) As ValueTask(Of SourceGeneratedDocument)

參數

documentId
DocumentId
cancellationToken
CancellationToken

傳回

適用於