Search Results for

    Show / Hide Table of Contents

    Class RequiredAttribute

    An attribute that indicates a required property. When persisting, the Realm will validate that the value of the property is not null.

    Inheritance
    Object
    Attribute
    RequiredAttribute
    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

    | Improve this Doc View Source

    RequiredAttribute()

    Initializes a new instance of the RequiredAttribute class.

    Declaration
    public RequiredAttribute()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX