Click or drag to resize

DatabaseSetValidation Method

Sets the validation delegate for the given name. If delegate is null, the validation with the given name is deleted. Before any change to the Database is committed, including incoming changes from a pull Replication, all of its validation delegates are called and given a chance to reject it.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public void SetValidation(
	string name,
	ValidateDelegate validationDelegate
)

Parameters

name
Type: SystemString
The name of the validation delegate to set.
validationDelegate
Type: Couchbase.LiteValidateDelegate
The validation delegate to set.
See Also