ICacheService.GetRelativePathBaseAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.