UIDocument.WriteContents 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.
Overloads
| Name | Description |
|---|---|
| WriteContents(NSObject, NSDictionary, NSUrl, UIDocumentSaveOperation, NSError) | |
| WriteContents(NSObject, NSUrl, UIDocumentSaveOperation, NSUrl, NSError) |
WriteContents(NSObject, NSDictionary, NSUrl, UIDocumentSaveOperation, NSError)
[Foundation.Export("writeContents:andAttributes:safelyToURL:forSaveOperation:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool WriteContents(Foundation.NSObject contents, Foundation.NSDictionary? additionalFileAttributes, Foundation.NSUrl url, UIKit.UIDocumentSaveOperation saveOperation, out Foundation.NSError outError);
[<Foundation.Export("writeContents:andAttributes:safelyToURL:forSaveOperation:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member WriteContents : Foundation.NSObject * Foundation.NSDictionary * Foundation.NSUrl * UIKit.UIDocumentSaveOperation * NSError -> bool
override this.WriteContents : Foundation.NSObject * Foundation.NSDictionary * Foundation.NSUrl * UIKit.UIDocumentSaveOperation * NSError -> bool
Parameters
- contents
- NSObject
- additionalFileAttributes
- NSDictionary
- url
- NSUrl
- saveOperation
- UIDocumentSaveOperation
- outError
- NSError
Returns
- Attributes
Applies to
WriteContents(NSObject, NSUrl, UIDocumentSaveOperation, NSUrl, NSError)
[Foundation.Export("writeContents:toURL:forSaveOperation:originalContentsURL:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool WriteContents(Foundation.NSObject contents, Foundation.NSUrl toUrl, UIKit.UIDocumentSaveOperation saveOperation, Foundation.NSUrl? originalContentsURL, out Foundation.NSError outError);
[<Foundation.Export("writeContents:toURL:forSaveOperation:originalContentsURL:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member WriteContents : Foundation.NSObject * Foundation.NSUrl * UIKit.UIDocumentSaveOperation * Foundation.NSUrl * NSError -> bool
override this.WriteContents : Foundation.NSObject * Foundation.NSUrl * UIKit.UIDocumentSaveOperation * Foundation.NSUrl * NSError -> bool
Parameters
- contents
- NSObject
- toUrl
- NSUrl
- saveOperation
- UIDocumentSaveOperation
- originalContentsURL
- NSUrl
- outError
- NSError
Returns
- Attributes