Edytuj

Udostępnij za pośrednictwem


NSFileProviderExtension.ImportDocumentAsync(NSUrl, String) Method

Definition

When implemented by the developer, imports the resource at the specified fileURL into the directory that is identified by parentItemIdentifier.

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

Parameters

fileUrl
NSUrl

The URL for the file.

parentItemIdentifier
String

The parent directory's persistent identifier.

Returns

A task that represents the asynchronous ImportDocument 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