IFileSystemProvider.CreateDirectoryAsync(Uri, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.