ScalarEncoder.Constant(Object) Method

Definition

Encodes a constant literal.

public:
 void Constant(System::Object ^ value);
public void Constant (object? value);
public void Constant (object value);
member this.Constant : obj -> unit
Public Sub Constant (value As Object)

Parameters

value
Object

A constant of type Boolean, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Char (encoded as a two-byte Unicode character), String (encoded as SerString), or Enum (encoded as the underlying integer value).

Exceptions

Unexpected constant type.

Applies to