共用方式為


IFileSystemProvider.GetRootEntriesAsync(CancellationToken) Method

Definition

Gets the root entries of the 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::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Uri>> GetRootEntriesAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetRootEntriesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Uri>>
Public Function GetRootEntriesAsync (cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of Uri))

Parameters

cancellationToken
CancellationToken

The cancellation token.

Returns

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

Applies to