async Task IDocument.SaveAsync(string path, DocumentSaveOperation operation) { var ok = await SaveAsync( NSUrl.FromFilename(path), operation == DocumentSaveOperation.ForCreating? UIDocumentSaveOperation.ForCreating : UIDocumentSaveOperation.ForOverwriting); if (!ok) { throw new Exception("UIDocument.SaveAsync failed"); } }
public async Task SaveAsync(string path, DocumentSaveOperation operation) { this.path = path; System.IO.File.WriteAllText(path, TextData); }
async Task IDocument.SaveAsync (string path, DocumentSaveOperation operation) { var ok = await SaveAsync ( NSUrl.FromFilename (path), operation == DocumentSaveOperation.ForCreating ? UIDocumentSaveOperation.ForCreating : UIDocumentSaveOperation.ForOverwriting); if (!ok) throw new Exception ("UIDocument.SaveAsync failed"); }
public async Task SaveAsync (string path, DocumentSaveOperation operation) { this.path = path; System.IO.File.WriteAllText (path, TextData); }