Click or drag to resize
RiakObjectSetObjectT Method (T, String)
Set the object's value, after serializing it.

Namespace:  RiakClient.Models
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
public void SetObject<T>(
	T value,
	string contentType = null
)
where T : class

Parameters

value
Type: T
The unserialized value.
contentType (Optional)
Type: SystemString
The content type of the object.

Type Parameters

T
The type of the value.
Remarks
This overload will choose its serializer based on the contentType. Supported types for this overload are: ApplicationJson, ProtocolBuffersXml and text.
See Also