Class Field
Represents a field in a ContentType. Note that this is not the representation of a field with actual value in an Entry<T> or Asset, but merely a representation of the fields data structure.
Inheritance
Inherited Members
Namespace:Contentful.Core.Models
Assembly:cs.temp.dll.dll
Syntax
public class Field
Properties
Disabled
Whether this field is disabled. Disabled fields are not visible in the Contentful web app.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Id
The ID of the field. It must be unique among all fields of the ContentType.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Items
Defines a schema for the elements of an array field. Will be null for other types.
Declaration
public Schema Items { get; set; }
Property Value
Type | Description |
---|---|
Schema |
LinkType
The type of link, if any. Normally Asset or Entry.
Declaration
public string LinkType { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Localized
Whether this field supports different values for different locales.
Declaration
public bool Localized { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The name of the field. This will be the label of the field in the Contentful web app.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Omitted
Whether this field is omitted in the response from the Content Delivery and Preview APIs.
Declaration
public bool Omitted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Required
Whether this field is mandatory or not.
Declaration
public bool Required { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Type
The type of field. Determines what type of data can be stored in the field.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Validations
The validations that should be applied to the field.
Declaration
public List<IFieldValidator> Validations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IFieldValidator> |