UIKit.UIDocument.LoadFromContents Method
App developers should override this method to load document data into their domain objects.

Syntax

[Foundation.Export("loadFromContents:ofType:error:")]
public virtual bool LoadFromContents (Foundation.NSObject contents, string typeName, out Foundation.NSError outError)

Parameters

contents
For flat files, you will receive an NSData, for file packages you will receive an NSFileWrapper instance.
typeName
An UTI representing the type of the loaded file (see MobileCoreServices.UTType for a list of known UTI types).
outError
Error return value.

Returns

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

Remarks

This can be used from a background thread.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0