ScalarEncoder.Constant(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.