Table of Contents

Interface IField

Namespace
ToSic.Sxc.Data
Assembly
ToSic.Sxc.dll

This describes a field-property of an item/entity. It's used for APIs which can need to know more about the field holding an item, like:

  • The field name and parent reference
  • The values in raw and converted
  • Any metadata of the field
[InternalApi_DoNotUse_MayChangeWithoutNotice("This is just FYI so you see how it works; you shouldn't use any of these properties in your code")]
public interface IField : IHasMetadata

Remarks

  • Created in v13.10
  • In v16.02 renamed from IDynamicField to IField as it's not dynamic any more Kind of a breaking change, but shouldn't affect any code out there as the type name is not used
  • In 16.02 changed types of Value and Raw to object - previously dynamic

Properties

Metadata

Metadata of the thing in the field - if it has such metadata.

The object will never be null, but it can of course not have any data if there is no metadata.

IMetadata Metadata { get; }

Property Value

IMetadata

Name

The field name

string Name { get; }

Property Value

string

Parent

The parent object of this field

ITypedItem Parent { get; }

Property Value

ITypedItem