RiakObject Constructor (RiakObjectId, Byte, String, String) |
Initializes a new instance of the
RiakObject class.
Namespace:
RiakClient.Models
Assembly:
RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax public RiakObject(
RiakObjectId objectId,
byte[] value,
string contentType,
string charSet
)
new :
objectId : RiakObjectId *
value : byte[] *
contentType : string *
charSet : string -> RiakObject
Parameters
- objectId
- Type: RiakClient.ModelsRiakObjectId
The object's Id. - value
- Type: SystemByte
The object's value. - contentType
- Type: SystemString
The content-type of the object, must be a MIME compliant content-type.
See RiakConstantsContentTypes for common options.
If the content type is not know, fall back to application/octet-stream.
- charSet
- Type: SystemString
The character set used to encode saved data.
Exceptions Remarks
When saving binary data to Riak, the constant
Binary should be used.
See Also