Begins an asynchronous
ListName operation.
Retrieves the list of file and directory names in the specified directory.
public Task<string[]> ListNameAsync(
string path,
SearchCondition searchCondition,
ExtendedAsyncCompletedEventHandler<string[]> callback,
object userState = null
)
Public Function ListNameAsync( _
ByVal path As String, _
ByVal searchCondition As SearchCondition, _
ByVal callback As ExtendedAsyncCompletedEventHandler(Of String()), _
ByVal userState As Object = null _
) As Task(Of String())
public:
Task<array<String>> ListNameAsync(
String^ path,
SearchCondition^ searchCondition,
ExtendedAsyncCompletedEventHandler<array<String>>^ callback,
Object^ userState = null
);
Parameters
- path
- The path of the directory, or null for current directory.
If the file system is FTP, consider changing the current directory before listing because many FTP servers do not support LIST command with parameter.
- searchCondition
- The search conditions to match against the files, or a null reference to search for all files.
- callback
- An optional asynchronous callback to be invoked when this operation completes. This parameter can be null.
- userState
- A user-provided object that identifies this particular asynchronous operation.