NSFileProviderExtension.TrashItemAsync(String) 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.
When implemented by the developer, moves the identified item into the trash.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<FileProvider.INSFileProviderItem> TrashItemAsync (string itemIdentifier);
abstract member TrashItemAsync : string -> System.Threading.Tasks.Task<FileProvider.INSFileProviderItem>
override this.TrashItemAsync : string -> System.Threading.Tasks.Task<FileProvider.INSFileProviderItem>
Parameters
- itemIdentifier
- String
The persistent identifier for the item.
Returns
A task that represents the asynchronous TrashItem 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.