共用方式為


SerializerFieldCode Enum

Definition

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 char value. The value of this field is encoded as a UInt16.

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 object containing a value that has a corresponding DataTypeCode in order to inform the deserializer that the field is not of the corresponding 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).

Applies to