IFindFilesService2.GetExternalFilesAsync Method

Definition

Get all external files of a folder

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

Parameters

path
String

The path to the folder or file for whom we want the external items

query
String

The string to use to match an external file name

cancellationToken
CancellationToken

A token whose cancellation will cancel the query.

Returns

A collection of the files external to a given path

Applies to