Click or drag to resize

IConflictResolverResolve Method

Resolves the conflict between the given items

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0033
Syntax
C#
IDictionary<string, Object> Resolve(
	IReadOnlyDictionary<string, Object> mine,
	IReadOnlyDictionary<string, Object> theirs,
	IReadOnlyDictionary<string, Object> baseProps
)

Parameters

mine
Type: System.Collections.GenericIReadOnlyDictionaryString, Object
The properties on the document that the local user created
theirs
Type: System.Collections.GenericIReadOnlyDictionaryString, Object
The properties on the document that exist from another edit
baseProps
Type: System.Collections.GenericIReadOnlyDictionaryString, Object
The properties as they were before either edit

Return Value

Type: IDictionaryString, Object
The resolved document properties, or null if the document cannot be resolved
Exceptions
ExceptionCondition
LiteCoreExceptionThrown if the method fails to resolve the document by returning null
See Also