NSFileProviderExtension.WritePlaceholder(NSUrl, NSDictionary, NSError) NSFileProviderExtension.WritePlaceholder(NSUrl, NSDictionary, NSError) Method

Definition

Writes a placeholder using provided metadata.

[Foundation.Export("writePlaceholderAtURL:withMetadata:error:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'NSFileProviderManager' instead.")]
public static bool WritePlaceholder (Foundation.NSUrl placeholderUrl, Foundation.NSDictionary metadata, ref Foundation.NSError error);
static member WritePlaceholder : Foundation.NSUrl * Foundation.NSDictionary *  -> bool

Parameters

placeholderUrl
NSUrl NSUrl

Pleaceholder URL related to the specified document.

metadata
NSDictionary NSDictionary

The document's metadata.

error
NSError NSError

If an error were to occur during the execution, the parameter is set to an error object describing the issue. If no error is to occur, you may pass in Null.

Returns

Yes if written successfully, otherwise no.

Remarks

Use whenever you need a placeholder for a document. You must not override this method.

This can be used from a background thread.

Applies to