편집

다음을 통해 공유


NSFileProviderExtension.DeleteItem(String, Action<NSError>) Method

Definition

When implemented by the developer, deletes the identified item and runs a handler when the operation is complete.

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

Parameters

itemIdentifier
String

The persistent identifier for the item.

completionHandler
Action<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