共用方式為


IPersistentStorageService.GetStorageAsync(Solution, CancellationToken) Method

Definition

public System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.Host.IPersistentStorage> GetStorageAsync (Microsoft.CodeAnalysis.Solution solution, System.Threading.CancellationToken cancellationToken = default);
abstract member GetStorageAsync : Microsoft.CodeAnalysis.Solution * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.Host.IPersistentStorage>
Public Function GetStorageAsync (solution As Solution, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of IPersistentStorage)

Parameters

solution
Solution
cancellationToken
CancellationToken

Returns

Applies to