편집

다음을 통해 공유


UIDocument.LoadFromContents(NSObject, String, NSError) Method

Definition

App developers should override this method to load document data into their domain objects.

[Foundation.Export("loadFromContents:ofType:error:")]
public virtual bool LoadFromContents (Foundation.NSObject contents, string typeName, out Foundation.NSError outError);
abstract member LoadFromContents : Foundation.NSObject * string *  -> bool
override this.LoadFromContents : Foundation.NSObject * string *  -> bool

Parameters

contents
NSObject

For flat files, you will receive an NSData, for file packages you will receive an NSFileWrapper instance.

typeName
String

An UTI representing the type of the loaded file (see UTType for a list of known UTI types).

This parameter can be null.

outError
NSError

Error return value.

Returns

True if the document was successfully loaded, false otherwise (and the details of the error will be on outError.

Attributes

Remarks

This can be used from a background thread.

Applies to