Compartir a través de


IConnectedWorkspaceService.GetFoldersAsync(String, CancellationToken) Method

Definition

Gets a collection of folders that exist in the given path.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<string>> GetFoldersAsync (string relativePath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFoldersAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<string>>
Public Function GetFoldersAsync (relativePath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyCollection(Of String))

Parameters

relativePath
String

The relative path to the directory to search for folders in.

cancellationToken
CancellationToken

A cancellation token.

Returns

A read only collection of the full names (including paths) for the folders in the directory specified by relativePath.

Applies to