Class RequiredAttribute
An attribute that indicates a required property. When persisting, the Realm will validate that the value of the property is not null.
Namespace: Realms
Assembly: Realm.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class RequiredAttribute : Attribute
Remarks
This attribute cannot be used with source generated classes when nullability annotations are enabled. In that case having a non-nullable type has the same effect as using this attribute.
Constructors
| Edit this page View SourceRequiredAttribute()
Initializes a new instance of the RequiredAttribute class.
Declaration
public RequiredAttribute()