Edytuj

Udostępnij za pośrednictwem


NSFileProviderExtension.ReparentItem Method

Definition

When implemented by the developer, moves the identified item to a new name under a new parent.

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

Parameters

itemIdentifier
String

The persistent identifier for the item.

parentItemIdentifier
String

The parent directory's persistent identifier.

newName
String

The new name for the item.

This parameter can be null.

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