Freigeben über


IFileSystemProvider.CreateDirectoryAsync(Uri, CancellationToken) Method

Definition

Creates a directory.

public:
 System::Threading::Tasks::Task ^ CreateDirectoryAsync(Uri ^ uri, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task CreateDirectoryAsync (Uri uri, System.Threading.CancellationToken cancellationToken);
abstract member CreateDirectoryAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CreateDirectoryAsync (uri As Uri, cancellationToken As CancellationToken) As Task

Parameters

uri
Uri

The directory to create.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task representing the asynchronous creation operation.

Exceptions

uri is null.

uri contains invalid characters.

uri refers to a file that already exists. ErrorCode will be set to FileAlreadyExists.

Remarks

Any and all directories in uri are created, unless they already exist or unless some part of uri is invalid.

Applies to