SerializerFieldCode Enum
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.
Values used as keys for Map objects in the Remote UI data serialization format.
public enum SerializerFieldCode
type SerializerFieldCode =
Public Enum SerializerFieldCode
- Inheritance
-
SerializerFieldCode
Fields
Char | 4 | A |
Collection | 11 | The value of the object serialized as a MessagePack array. |
CollectionType | 7 | The type of the entries of an ICollection, ICollection<T> or ICollection<T> of nullable values. |
Command | 3 | The value of the object serialized as a MessagePack map. Command is used instead of Object when the value is a command. |
Id | 1 | The identifier of a uniquely identifiable object. |
LocalDateTime | 8 | A DateTime value of kind Local. The value is serialized after being converted to Utc. |
Nullable | 5 | A nullable value. The value of this field is serialized as non-nullable Remote UI data. |
NullableCollection | 12 | The value of the object serialized as a MessagePack array. NullableCollection is used instead of Collection when the value implements ICollection<T> of nullable values. |
NullableType | 6 | An empty nullable and its type information. The value of this field is a DataTypeCode or Nil. |
Object | 2 | The value of the object serialized as a MessagePack map. |
Reference | 0 | A reference to a uniquely identifiable object. The value of this field is the object identifier. |
UnspecifiedDateTime | 9 | A DateTime value of kind Unspecified. |
Untyped | 13 | An untyped value. The value of this field is serialized as Remote UI data. This is used when
serializing a property of type |
Version | 10 | The version of the object. |
Xaml | 14 | A XAML string. |
Remarks
The Remote UI data serialization format is compatible with MessagePack but requires special handling when deserializing Map objects.
The keys of Map objects are one of the SerializerFieldCode values. This allows Remote UI data to be serialized in valid MessagePack format (without custom extensions), that can be automatically converted to json, while retaining additional metadata (e.g., unique object ids and data type information).