Documentation
Table of Contents

Class DocumentSave

Namespace
IntentSharp.Documents
Assembly
IntentSharp.dll

A request to SaveAsync(DocumentSave, CancellationToken): the text of a new version of a document, who wrote it, and whether it runs.

public sealed class DocumentSave
Inheritance
object
DocumentSave
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

DocumentSave()

Creates a save request; set Id, Text and Author.

Properties

Activate

True, the default, makes the new version the document's running version. False stores it without running it, for example a candidate to compare or activate later with ActivateAsync(DocumentId, long, CancellationToken).

Author

Who wrote the new version.

BasedOn

The running sequence this version was based on. When set and it is not the document's running sequence at the moment of the save (another version became running since it was read, or the document has no running version), the save throws DocumentConflictException and stores nothing. Null skips the check.

Id

The document to save a version of. A document that does not exist yet is created by its first save.

Reason

Why the version was written; null for none. Stored with the version.

Text

The new version's text, stored as given. An empty string is a valid document.