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

    | Edit this page View Source

    RequiredAttribute()

    Initializes a new instance of the RequiredAttribute class.

    Declaration
    public RequiredAttribute()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX