Editar

Compartilhar via


NSFileProviderExtension.CreateDirectory Method

Definition

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

[Foundation.Export("createDirectoryWithName:inParentItemIdentifier:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void CreateDirectory (string directoryName, string parentItemIdentifier, Action<FileProvider.INSFileProviderItem,Foundation.NSError> completionHandler);
abstract member CreateDirectory : string * string * Action<FileProvider.INSFileProviderItem, Foundation.NSError> -> unit
override this.CreateDirectory : string * string * Action<FileProvider.INSFileProviderItem, Foundation.NSError> -> unit

Parameters

directoryName
String

The directory name.

parentItemIdentifier
String

The parent directory's persistent identifier.

completionHandler
Action<INSFileProviderItem,NSError>

A handler to run after the operation completes.

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to