Click or drag to resize
IRiakBatchClientDtUpdateSetT Method (RiakObjectId, SerializeObjectToByteArrayT, Byte, ListT, ListT, RiakDtUpdateOptions)

Note: This API is now obsolete.

Update a Set Data Type object at the provided address.

Namespace:  RiakClient
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
[ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")]
RiakDtSetResult DtUpdateSet<T>(
	RiakObjectId objectId,
	SerializeObjectToByteArray<T> serialize,
	byte[] context,
	List<T> adds = null,
	List<T> removes = null,
	RiakDtUpdateOptions options = null
)

Parameters

objectId
Type: RiakClient.ModelsRiakObjectId
The RiakObjectId of the set to update.
serialize
Type: RiakClient.ModelsSerializeObjectToByteArrayT
A delegate to serialize the adds and removes lists from objects of type T to a byte[].
context
Type: SystemByte
The most recent known byte[] data type context for this object, to base this operation off of for causality merging.
adds (Optional)
Type: System.Collections.GenericListT
A ListT of items to add to the set.
removes (Optional)
Type: System.Collections.GenericListT
A ListT of items to remove from the set.
options (Optional)
Type: RiakClient.ModelsRiakDtUpdateOptions
The RiakDtUpdateOptions responsible for configuring the semantics of this data type update request.

Type Parameters

T
The type of the objects being stored in the set.

Return Value

Type: RiakDtSetResult
A RiakDtSetResult detailing the operation result, current context, and set values.
Exceptions
ExceptionCondition
ArgumentNullExceptioncontext cannot be null if removing any item from the set.
Remarks
Removal of any item from the set requires that the context be non-null, or else an ArgumentNullException will be thrown.
See Also