Class RecordField
A field of a RecordSchema.
public sealed class RecordField
- Inheritance
-
RecordField
- Inherited Members
Remarks
A field belongs to one record, which sets its Record and Position. A record given a
field that already belongs to another one takes a copy, so new RecordSchema(name, other.Fields.Append(field))
works and leaves other as it was.
Constructors
- RecordField(string, AvroSchema, JsonElement?, string?, FieldOrder, IEnumerable<string>?, IReadOnlyDictionary<string, JsonElement>?)
Initializes a record field.
Properties
- Aliases
Gets the alternative names of the field.
- DefaultValue
Gets the JSON default value, or null when the field has no default.
- HasDefaultValue
Gets a value indicating whether the field has a default value.
- Name
Gets the field name.
- Order
Gets the sort order.
- Position
Gets the zero-based position of the field in its record, or -1 before it is added to one.
- Properties
Gets the attributes not defined by the specification for fields.
- Schema
Gets the field schema.
Methods
- ToString()
Returns a string that represents the current object.