IFileSystem.GetRootEntriesAsync(String, CancellationToken) Method

Definition

Gets the root entries of a provider's namespace. For instance, the root entries for a provider for the local machine's file system might represent the physical drives on the local machine.

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyList<Uri ^> ^> ^ GetRootEntriesAsync(System::String ^ scheme, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Uri>> GetRootEntriesAsync (string scheme, System.Threading.CancellationToken cancellationToken);
abstract member GetRootEntriesAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Uri>>
Public Function GetRootEntriesAsync (scheme As String, cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of Uri))

Parameters

scheme
String

The scheme for the provider.

cancellationToken
CancellationToken

The cancellation token.

Returns

A collection of Uris for the root entries of the provider's namespace.

Applies to