Click or drag to resize

ViewSetMap Method

Defines the View's MapDelegate and sets its ReduceDelegate to null.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public bool SetMap(
	MapDelegate mapDelegate,
	string version
)

Parameters

mapDelegate
Type: Couchbase.LiteMapDelegate
The MapDelegate to set
version
Type: SystemString
The key of the property value to return. The value of this parameter must change when the MapDelegate is changed in a way that will cause it to produce different results.

Return Value

Type: Boolean
True if the MapDelegate was set, otherwise false. If the values provided are identical to the values that are already set, then the values will not be updated and false will be returned. In addition, if true is returned, the index was deleted and will be rebuilt on the next Query execution.
See Also