Bin Constructor

Overload List

Bin(String, Value) Constructor, specifying bin name and value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Boolean) Constructor, specifying bin name and boolean value. For servers configured as "single-bin", enter a null or empty name. Either a boolean or integer bin is sent to the server, depending on configuration UseBoolBin.
Bin(String, Byte) Constructor, specifying bin name and byte value. The server will convert all byte integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Byte) Constructor, specifying bin name and byte array value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, IDictionary) Create bin with a map value. The map value will be serialized as a server map type. For servers configured as "single-bin", enter a null or empty name.
Bin(String, IList) Create bin with a list value. The list value will be serialized as a server list type. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Double) Constructor, specifying bin name and double value.

For servers configured as "single-bin", enter a null or empty name.

Bin(String, Int16) Constructor, specifying bin name and short value. The server will convert all shorts to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Int32) Constructor, specifying bin name and integer value. The server will convert all integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Int64) Constructor, specifying bin name and long value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Object) Create bin with an object value. This is the slowest of the Bin constructors because the type must be determined using multiple "instanceof" checks. If the object type is unrecognized, BinaryFormatter is used to serialize the object.

To disable this constructor, set DisableSerializer to true.

Bin(String, SByte) Constructor, specifying bin name and signed byte value. The server will convert all byte integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Single) Constructor, specifying bin name and float value.

For servers configured as "single-bin", enter a null or empty name.

Bin(String, String) Constructor, specifying bin name and string value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, UInt16) Constructor, specifying bin name and unsigned short value. The server will convert all shorts to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, UInt32) Constructor, specifying bin name and unsigned integer value. The server will convert all integers to longs. For servers configured as "single-bin", enter a null or empty name.
Bin(String, UInt64) Constructor, specifying bin name and unsigned long value. For servers configured as "single-bin", enter a null or empty name.
Bin(String, IDictionary, MapOrder) Create bin with a map value and order. The map value will be serialized as a server map type. For servers configured as "single-bin", enter a null or empty name.
Bin(String, Byte, Int32, Int32) Constructor, specifying bin name and byte array segment value. For servers configured as "single-bin", enter a null or empty name.

See Also