Editar

Compartilhar via


NSFileProviderExtension.CreateDirectoryAsync(String, String) Method

Definition

When implemented by the developer, creates a new directory in the specified location and runs a handler when the operation is complete.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<FileProvider.INSFileProviderItem> CreateDirectoryAsync (string directoryName, string parentItemIdentifier);
abstract member CreateDirectoryAsync : string * string -> System.Threading.Tasks.Task<FileProvider.INSFileProviderItem>
override this.CreateDirectoryAsync : string * string -> System.Threading.Tasks.Task<FileProvider.INSFileProviderItem>

Parameters

directoryName
String

The directory name.

parentItemIdentifier
String

The parent directory's persistent identifier.

Returns

A task that represents the asynchronous CreateDirectory operation. The value of the TResult parameter is of type System.Action<FileProvider.INSFileProviderItem,Foundation.NSError>.

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to