Click or drag to resize

IValidationContext Interface

Context passed to a ValidateDelegate.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public interface IValidationContext

The IValidationContext type exposes the following members.

Properties
  NameDescription
Public propertyChangedKeys
Gets the keys whose values have changed between the current and new Revisions.
Public propertyCurrentRevision
Gets the current Revision of the Document, or null if this is a new Document.
Top
Methods
  NameDescription
Public methodReject
Rejects the new Revision.
Public methodReject(String)
Rejects the new Revision. The specified message will be included with the resulting error.
Public methodValidateChanges
Calls the ValidateChangeDelegate for each key/value that has changed, passing both the old and new values. If any delegate call returns false, the enumeration stops and false is returned, otherwise true is returned.
Top
See Also