ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / Menu Class / IsRequired Property






In This Topic
    IsRequired Property (Menu)
    In This Topic
    Gets or sets a value that determines whether the control value must be set to a non-null value or whether it can be set to null (by deleting the content of the control).
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(False)>
    Public Overrides Property IsRequired As System.Boolean
    'Usage
     
    
    Dim instance As Menu
    Dim value As System.Boolean
     
    instance.IsRequired = value
     
    value = instance.IsRequired
    [System.ComponentModel.DefaultValue(false)]
    public override System.bool IsRequired {get; set;}
    public read-write property IsRequired: System.Boolean; override; 
    System.ComponentModel.DefaultValueAttribute()
    public override function get,set IsRequired : System.boolean
    [System.ComponentModel.DefaultValue(false)]
    public: __property System.bool get_IsRequired() override;
    public: __property void set_IsRequired( 
       System.bool value
    ) override;
    [System.ComponentModel.DefaultValue(false)]
    public:
    property System.bool IsRequired {
       System.bool get() override;
       void set (    System.bool value) override;
    }
    See Also