Compartir a través de


ICacheService.GetRelativePathBaseAsync(CancellationToken) Method

Definition

Gets an absolute path that should be used as the basis for all relative paths stored in the cache for purposes of sharing across machines.

public:
 System::Threading::Tasks::ValueTask<System::String ^> GetRelativePathBaseAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<string> GetRelativePathBaseAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetRelativePathBaseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Function GetRelativePathBaseAsync (cancellationToken As CancellationToken) As ValueTask(Of String)

Parameters

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

An absolute path.

Exceptions

Thrown if cancellationToken is cancelled.

Thrown if this instance has already been disposed.

Thrown when there is no open context such as an open folder or solution to serve as a basis for computing a base path.

Applies to