[This is preliminary documentation and is subject to change.]
Appends the value of an object to this message.
| C# |
public void AppendVariant( Object value )
- value (Object)
- The object to append. May be null.
If the object is one of the other types for which an Append
method is available, then that method is used. In all other cases, an
appropriate formatter is used to serialise the object, which is then
appended to the Message. The value must be read from the message using
ReadVariant.
| Exception | Condition |
|---|---|
| SerializationException |
Thrown if the type of the object does not have an Append method, and is not
marked as serialisable. |