[This is preliminary documentation and is subject to change.]
Appends the value of an object to this message.
Declaration Syntax
C# |
public void AppendVariant( Object value )
Parameters
- value (Object)
- The object to append. May be null.
Remarks
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.
Exceptions
Exception | Condition |
---|---|
SerializationException |
Thrown if the type of the object does not have an Append method, and is not
marked as serialisable. |