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 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,
ObjectThe resolved document properties, or
null if the document cannot be resolved
Exceptions Exception | Condition |
---|
LiteCoreException | Thrown if the method fails to resolve the document
by returning null |
See Also