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
Name | Value | Description |
---|---|---|
Reference | 0 | A reference to a uniquely identifiable object. The value of this field is the object identifier. |
Id | 1 | The identifier of a uniquely identifiable object. |
Object | 2 | The value of the object serialized as a MessagePack map. |
Command | 3 | The value of the object serialized as a MessagePack map. Command is used instead of Object when the value is a command. |
Char | 4 | A |
Nullable | 5 | A nullable value. The value of this field is serialized as non-nullable Remote UI data. |
NullableType | 6 | An empty nullable and its type information. The value of this field is a DataTypeCode or Nil. |
CollectionType | 7 | The type of the entries of an ICollection, ICollection<T> or ICollection<T> of nullable values. |
LocalDateTime | 8 | A DateTime value of kind Local. The value is serialized after being converted to Utc. |
UnspecifiedDateTime | 9 | A DateTime value of kind Unspecified. |
Version | 10 | The version of the object. |
Collection | 11 | The value of the object serialized as a MessagePack array. |
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. |
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 |
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).