Click or drag to resize
IRiakBatchClientDtUpdateSetT Method (String, String, String, 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>(
	string bucketType,
	string bucket,
	string key,
	SerializeObjectToByteArray<T> serialize,
	byte[] context,
	List<T> adds = null,
	List<T> removes = null,
	RiakDtUpdateOptions options = null
)

Parameters

bucketType
Type: SystemString
The name of the bucket type containing the bucket.
bucket
Type: SystemString
The name of the bucket containing the key.
key
Type: SystemString
The key of the data type object.
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.
See Also